An argument selector to extract arguments for the handler
A Synchronous argument selector
Compile a handler into a runnable function by resolving selectors and injecting the arguments into the handler.
Selectors to gather handler arguments from
Handler to be compiled
compiled handler ready to be used
Factory function that creates a selector to extract the request body in a buffer
{@link BufferBodySelectorOptions | Options} for the buffer
A selector for extracting request body in a buffer
Factory function to create a selector to extract the JSON encoded body of a request
{@link JsonBodySelectorOptions | Options} for the body parsing
A selector for JSON body requests
Factory function to create a selector to extract the text body from a request
Options such as limit and encoding
a selector for text request bodies
Factory function to create a selector to extract the url encoded body from a request
{@link UrlEncodedBodySelectorOptions | Options} for the body parser
selector for url encoded request bodies
Factory function to create a simple error handler middleware
A prismy compatible middleware error handler
A selector to extract the headers of a request
The request context
The request headers
Selector to extract the HTTP method from the request
the http request method
Factory function to create a prismy compatible middleware. Accepts selectors to help with testing, DI etc.
Tuple of selectors
Middleware handler
A prismy compatible middleware
Factory function to create a prismy compatible middleware. Accepts selectors to help with testing, DI etc.
Tuple of selectors
Middleware handler
Generates a handler to be used by http.Server
Tuple of Selectors to generate arguments for handler
Business logic handling the request
Middleware to pass request and response through
Generates a handler to be used by http.Server
Tuple of Selectors to generate arguments for handler
Business logic handling the request
Middleware to pass request and response through
Selector to extract the parsed query from the request URL
Request context
a selector for the url query
Factory function for easily generating a redirect response
URL to redirect to
Status code for response. Defaults to 302
Additional headers of the response
A redirect {@link ResponseObject | response} to location
Factory function for creating http responses
Body of the response
HTTP status code of the response
HTTP headers for the response
A {@link ResponseObject | response object} containing necessary information
Creates a new response with a new body
The response to set the body on
Body to be set
New {@link ResponseObject | response} with the new body
Creates a new response overriting all headers with new ones.
response to set new headers on
HTTP response headers to set
New {@link ResponseObject | response} with new headers set
Creates a new response with a new status code
The response to set the code to
HTTP status code
New {@link ResponseObject | response} with the new statusCode
Creates a new response with the extra headers.
The response to add the new headers to
HTTP response headers
New {@link ResponseObject | response} with the extra headers
Selector for extracting the requested URL
Request context
The url of the request
Generated using TypeDoc
An asynchronous argument selector