HTTP
Start here
Section titled “Start here”HttpArcTop-level application entry point.FlareHttpContextFull HTTP context passed to controllers, middleware, and handler functions.ControllerBaseBase class for class-based HTTP controllers registered on HttpArc.httpContractDefines a typed HTTP contract for a group of route handlers - a thin shorthand over the genericcontract("http", descriptor)core.HttpRouteOptionsRegistration options for function routes: loose inline fields OR a brandedcontract, never both.MiddlewareBaseBase class for HTTP middleware registered on HttpArc.before, HttpArc.after, or HttpArc.finally.ErrorHandlerBaseBase class for HTTP error handlers registered on HttpArc.error.
Classes
Section titled “Classes”ControllerBaseBase class for class-based HTTP controllers registered on HttpArc.ErrorHandlerBaseBase class for HTTP error handlers registered on HttpArc.error.FlareCookiesRead/write cookie API exposed viactx.cookies.FlareHttpContextFull HTTP context passed to controllers, middleware, and handler functions.FlareRequestPure inbound representation of an HTTP request.FlareResponseOutbound response value returned by Flare handlers and helper methods.HttpArcTop-level application entry point.MiddlewareBaseBase class for HTTP middleware registered on HttpArc.before, HttpArc.after, or HttpArc.finally.
Functions
Section titled “Functions”httpContractDefines a typed HTTP contract for a group of route handlers - a thin shorthand over the genericcontract("http", descriptor)core.streamStream primitive.
Decorators
Section titled “Decorators”DeleteRegisters the decorated method as a handler forDELETE path.GetRegisters the decorated method as a handler forGET path.HeadRegisters the decorated method as a handler forHEAD path.MethodRegisters the decorated method as a handler for an arbitrary HTTP method.OptionsRegisters the decorated method as a handler forOPTIONS path.PatchRegisters the decorated method as a handler forPATCH path.PostRegisters the decorated method as a handler forPOST path.PutRegisters the decorated method as a handler forPUT path.
CookieOptionsOptions forctx.cookies.set().CorsConfigConfiguration for a CORS policy, declared at arc or group level.HandlerResultAll values a route handler is permitted to return.HttpAfterHandleraftermiddleware hook signature.HttpBeforeHandlerbeforemiddleware hook signature.HttpErrorHandlerInline error-handler function signature.HttpErrorHandlerOptionsRegistration options forerror.HttpFinallyHandlerfinallymiddleware hook signature.HttpHandlerScopePer-request DI and config surface.HttpMiddlewareOptionsRegistration options forbefore/after/finally.HttpRouteHandlerInline or functional route handler signature.HttpRouteOptionsRegistration options for function routes: loose inline fields OR a brandedcontract, never both.MiddlewareOverrideMiddleware hooks may either keep the current handler result by returningundefined/void, or replace it by returning any explicit handler result.RedirectOptionsResponseHeadersResponseLikeSseEventOne Server-Sent Events frame.SseWriterPush surface handed to actx.sse(...)producer.