RequestHandler
Stentor API Reference / stentor-models/src / RequestHandler
Interface: RequestHandler
Defined in: packages/stentor-models/src/RequestHandler.ts:5
Methodsβ
canHandleRequest()β
canHandleRequest(
request,context):boolean
Defined in: packages/stentor-models/src/RequestHandler.ts:13
If it can handle the request.
Parametersβ
requestβ
Potential request for the handler
contextβ
Context for the request
Returnsβ
boolean
If the handler can handle the provided request with given context
handleRequest()β
handleRequest(
request,context):Promise\<void>
Defined in: packages/stentor-models/src/RequestHandler.ts:21
Handle the give request with provided context.
Parametersβ
requestβ
Request to be handled
contextβ
Context the request is handled within
Returnsβ
Promise\<void>
Promise that returns void when the execution is complete