SimplifiedFetch

Home > simplified-fetch

simplified-fetch package

Encapsulate a unified API request object to simplify the use of fetch

Remarks

docs generated by @microsoft/api-extractor & api-documenter, may not so good.

Classes

Class Description
API main entry to generate the SimplifiedFetch

Interfaces

Interface Description
BaseConfig basic config
iApi_beta (BETA) iApi
iApi get AbortController & AbortSignal via [controller, signal]= Api.aborts.someApi iAbortspipe: Map which operates Request & Response [PipeRequest](/SimplifiedFetch/simplified-fetch.piperequest.html) [PipeResponse](/SimplifiedFetch/simplified-fetch.piperesponse.html)
iPipe manage the functions which pipe the request or response

Variables

Variable Description
urnParser parse the template strings with params

Type Aliases

Type Alias Description
APIConfig config of each api
apiF the access of configed fetch
bodyAsParams body of fetch
BodyMixin transform the response body
iAborts_beta (BETA) iApi
iAborts build-in, automatically generated AbortController & AbortSignal
iDynamicConfig  
Methods Http(s) request methods
PipeRequest Asynchronous executed after internal core operation with url & config, just before fetch
PipeResponse Asynchronous executed just after getting the response
request config of fetch
URN rest part of the fetch url, could be a function like urnParser
URNParser parser the urn with prarms