StaticServeHooks
Defined in: src/types.ts:340
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/types.ts:341
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/types.ts:342
Parameters
Section titled “Parameters”response
Section titled “response”Response
Returns
Section titled “Returns”Response | Promise<Response>