Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RequestHandler<RequestType, ResponseType, HandlerOptions>

public

Type parameters

  • RequestType

  • ResponseType

  • HandlerOptions = {}

Hierarchy

  • RequestHandler

Implemented by

Index

Properties

Properties

Optional destroy

destroy: undefined | (() => void)

handle

handle: (request: RequestType, handlerOptions?: HandlerOptions) => Promise<RequestHandlerOutput<ResponseType>>

Type declaration

Optional metadata

metadata contains information of a handler. For example 'h2' refers this handler is for handling HTTP/2 requests, whereas 'h1' refers handling HTTP1 requests