Interface IHttpRequestHandlerOptions

Options for a request handler.

interface IHttpRequestHandlerOptions {
    autoEnd?: Optional<boolean>;
    use?: Nilable<HttpMiddleware[]>;
}

Properties

Properties

autoEnd?: Optional<boolean>

Automatic call end() method on response context when handler was executed successfully.

Default

true
use?: Nilable<HttpMiddleware[]>

A list of one or more middlewares.

Generated using TypeDoc