Skip to content

Latest commit

 

History

History
112 lines (63 loc) · 2.39 KB

globals.md

File metadata and controls

112 lines (63 loc) · 2.39 KB

@hqoss/http-clientGlobals

@hqoss/http-client

Index

Enumerations

Classes

Type aliases

Functions

Type aliases

HttpClientInitOpts

Ƭ HttpClientInitOpts: object

Defined in httpClient/types.ts:10

Type declaration:

  • baseHeaders? : Record‹string, string›

  • baseOptions? : Omit‹RequestInit, "headers"›

  • baseUrl: string

  • json? : undefined | false | true


RequestInterceptor

Ƭ RequestInterceptor: function

Defined in httpClient/types.ts:3

Type declaration:

▸ (url: string, request: RequestInit): void | Promise‹void›

Parameters:

Name Type
url string
request RequestInit

ResponseTransformer

Ƭ ResponseTransformer: function

Defined in httpClient/types.ts:8

Type declaration:

▸ (res: Response): any

Parameters:

Name Type
res Response

Functions

Const identityResponseTransformer

identityResponseTransformer(response: Response‹›): Response‹›

Defined in httpClient/identityResponseTransformer.ts:3

Parameters:

Name Type
response Response‹›

Returns: Response‹›


Const jsonResponseTransformer

jsonResponseTransformer(response: Response‹›): Promise‹any›

Defined in httpClient/jsonResponseTransformer.ts:3

Parameters:

Name Type
response Response‹›

Returns: Promise‹any›