griddy-sdk / BeforeRequestHook
Interface: BeforeRequestHook¶
Defined in: src/griddy/nfl/_hooks/types.ts:56
Hook called before a request is sent.
Methods¶
beforeRequest()¶
beforeRequest(
ctx,request):Request|Promise\<Request>
Defined in: src/griddy/nfl/_hooks/types.ts:63
Called before a request is sent.
Parameters¶
ctx¶
The hook context
request¶
Request
The request to be sent
Returns¶
Request | Promise\<Request>
Modified request or an error to throw