Module HTTP::HTTP

Predicates

httpOrHttps

Gets the string http or https.

Classes

CookieCryptographicKey

A key used for signed cookies, viewed as a CryptographicKey.

CookieDefinition

An expression that sets a cookie in an HTTP response.

CookieMiddlewareInstance

An expression that creates a route handler that parses cookies

ExplicitHeaderDefinition

An expression that sets HTTP response headers explicitly.

HeaderDefinition

An expression that sets HTTP response headers.

ImplicitHeaderDefinition

An expression that sets HTTP response headers implicitly.

RedirectInvocation

A function invocation that causes a redirect response to be sent.

RequestExpr

An expression that may contain a request object.

RequestHeaderAccess

An access to a header on an incoming HTTP request.

RequestInputAccess

An access to a user-controlled HTTP request input.

RequestMethodName

The name of an HTTP request method, in all-uppercase.

ResponseBody

An expression whose value is sent as (part of) the body of an HTTP response.

ResponseExpr

An expression that may contain a response object.

ResponseSendArgument

An expression whose value is included directly (and not, say, via a template) in the body of an HTTP response.

RouteHandler

A callback for handling a request on some route on a server.

RouteHandlerCandidate

A function that looks like a route handler.

RouteSetup

An expression that sets up a route on a server.

RouteSetupCandidate

A node that looks like a route setup on a server.

ServerDefinition

An expression that creates a new server.

SetCookieHeader

An expression that sets the Set-Cookie header of an HTTP response.

Modules

Servers

Boiler-plate implementation of a Server and its associated classes. Made for easily defining new HTTP servers