Interface RequestHandler<RequestType, ResponseType, HandlerOptions>
Type parameters
RequestType
ResponseType
HandlerOptions = {}
Properties
Optional destroy
destroy: ( ) => void
handle
handle
: ( request
: RequestType , handlerOptions
?: HandlerOptions ) => Promise < RequestHandlerOutput < ResponseType > >
Type declaration
( request: RequestType , handlerOptions?: HandlerOptions ) : Promise < RequestHandlerOutput < ResponseType > >
Parameters
request: RequestType
Optional handlerOptions: HandlerOptions
Legend
Namespace
Object literal
Variable
Function
Function with type parameter
Type alias
Type alias with type parameter
Interface
Interface with type parameter
Property
Class
Class with type parameter
metadata contains information of a handler. For example 'h2' refers this handler is for handling HTTP/2 requests, whereas 'h1' refers handling HTTP1 requests