interface BeforeCreateRequestHook {
    beforeCreateRequest: (
        hookCtx: HookContext,
        input: RequestInput,
    ) => RequestInput;
}

Implemented by

Properties

beforeCreateRequest: (hookCtx: HookContext, input: RequestInput) => RequestInput

A hook that is called before the SDK creates a Request object. The hook can modify how a request is constructed since certain modifications, like changing the request URL, cannot be done on a request object directly.