StaticServeHooks
Defined in: src/util/types.ts:422
Type Parameters
Section titled “Type Parameters”T extends Record<string, any>
Properties
Section titled “Properties”onRequest()?
Section titled “onRequest()?”
optionalonRequest: (ctx) =>void|Response|Promise<void|Response>
Defined in: src/util/types.ts:423
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void | Response | Promise<void | Response>
onResponse()?
Section titled “onResponse()?”
optionalonResponse: (ctx,response) =>Response|Promise<Response>
Defined in: src/util/types.ts:424
Parameters
Section titled “Parameters”response
Section titled “response”Response
Returns
Section titled “Returns”Response | Promise<Response>