A basic implementation of the ServerExceptionHandler which gracefully handles HttpStatusException by setting the response status, and defaults to a 500 INTERNAL SERVER ERROR respones for all other exceptions. If the response has already been flushed, an error will be logged.
An exception that can be thrown to indicate that the current request should immediately respond with a specified status, short-circuiting any other handler logic. Note that it is still the responsibility of the server's exception handler to honor this exception, but by default, the BasicServerExceptionHandler does honor it.
Compile-time function used to determine if something is a request handler function. That is, it returns void, takes ref HttpRequestContext as a single argument, and is callable.
Helper method for an HttpRequestHandler that simply responds with a 503 to any request.
Helper method to produce an HttpRequestHandler from a function.
Interface for any component that handles HTTP requests.
A specialized handler which is used for situations in which you'd like to gracefully handle an exception that occurs during processing a request.
A simple container for the components that are available in the context of handling an HttpRequest. This includes the request, response, server, and other associated objects.
Contains core components for the HTTP handler structure.