Home > simplified-fetch > BaseConfig
basic config
Signature:
export interface BaseConfig extends RequestInit
Extends: RequestInit
RequestInit MDN
Property | Type | Description |
---|---|---|
baseURL? | string | URL | (Optional) basic url |
bodyMixin? | BodyMixin | (Optional) how the response will be transformed |
custom? | any | (Optional) any, used for custom config, reuse it in pipeline |
enableAbort? | boolean | number | (Optional) abort fetch, enable by given true or number(means timeout) |
method? | Methods | (Optional) default method |
methodInName? | (name: string) => Methods | (Optional) get method from api’s name |
newName? | string | (Optional) name to access the SimplifiedFetch on globalThis |
pureResponse? | boolean | (Optional) set ture will get return Response.clone() |
suffix? | string | (Optional) add suffix for url |