Interface Extended<TExt, TMeans>

HTTP processing configuration for extended requests.

Type Parameters

  • TExt

    Request processing means extension type.

  • TMeans extends HttpMeans = HttpMeans

    A type of supported HTTP request processing means.

Hierarchy

Properties

defaultHandler?: boolean | RequestHandler<TMeans & TExt>

Default HTTP request handler.

This handler will be called after all other handlers when response is not generated.

When set to false the default response won't be generated.

Default

true, which means a 404 Not Found error will be raised if there is no response.

errorHandler?: boolean | RequestHandler<TMeans & TExt & ErrorMeans<any>>

Error processing handler.

This handler will be called once request processing error occurred. Such handler would receive a error processing means along with HTTP processing ones.

When set to false the request processing errors will be logged, but otherwise ignored.

Default

true, which means the request processing error page will be rendered by renderHttpError handler.

logError?: boolean

Whether to log HTTP processing error.

Unhandled errors will be logged with console.error in any case.

Default

true, which means an error will be logged with logger means, created if necessary.

Methods

Generated using TypeDoc