jin-frame / interfaces/options/THook / TPreEitherHook
Type Alias: TPreEitherHook()
TPreEitherHook = (
req) =>void|Promise<void>
Defined in: packages/jin-frame/src/interfaces/options/THook.ts:12
Execute before request. If you can change request object that is affected request.
Parameters
req
request object
Returns
void | Promise<void>