Home > simplified-fetch > PipeRequest
Asynchronous executed after internal core operation with url & config, just before fetch
Signature:
export declare type PipeRequest = (url: URL, config: BaseConfig, param: [bodyAsParams | undefined, any | undefined, iDynamicConfig], configs: [string, URN, BaseConfig, BaseConfig]) => unknown;
References: BaseConfig, bodyAsParams, iDynamicConfig, URN
only the change to url & config will effect, others are just copy from your init/create config & call params.
function return true or any message, someApi will immediate reject with that, don’t forget to catch it.