UNPKG

mframejs

Version:
37 lines (27 loc) 780 B
/** * fetch * */ export interface IFetchConfig { // default url to use defaultUrl?: string; // data formsdata, json/string body?: any; // 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached cache?: string; // 'same-origin', // include, same-origin, *omit credentials?: string; // { // 'user-agent': 'Mozilla/4.0 MDN Example', // 'content-type': 'application/json' // }, headers?: Object; // 'POST', // *GET, POST, PUT, DELETE, etc. method?: string; // 'cors', // no-cors, cors, *same-origin mode?: string; // 'follow', // manual, *follow, error redirect?: string; // 'no-referrer', // *client, no-referrer referrer?: string; }