SimplifiedFetch

Home > simplified-fetch > PipeRequest

PipeRequest type

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

Remarks

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.