UNPKG

@waiting/fetch

Version:

HTTP fetch API for browser and Node.js. Handle 302/303 redirect correctly on Node.js

34 lines 1.56 kB
export { FormData, Headers, Response, } from 'undici'; export var FnKeys; (function (FnKeys) { FnKeys["arrayBuffer"] = "arrayBuffer"; FnKeys["blob"] = "blob"; FnKeys["formData"] = "formData"; FnKeys["json"] = "json"; FnKeys["text"] = "text"; })(FnKeys || (FnKeys = {})); export var ContentTypeList; (function (ContentTypeList) { ContentTypeList["formDataPartial"] = "multipart/form-data; boundary="; ContentTypeList["formUrlencoded"] = "application/x-www-form-urlencoded; charset=utf-8"; ContentTypeList["html"] = "text/html; charset=utf-8"; ContentTypeList["json"] = "application/json; charset=utf-8"; ContentTypeList["plain"] = "text/plain"; })(ContentTypeList || (ContentTypeList = {})); export var FetchMsg; (function (FetchMsg) { FetchMsg["httpErrorMsgPrefix"] = "Fetch error status:"; })(FetchMsg || (FetchMsg = {})); export var AttributeKey; (function (AttributeKey) { AttributeKey["PrepareRequestData"] = "prepare-request-data"; AttributeKey["ProcessRequestData"] = "process-request-data"; AttributeKey["HandleRedirectFinish"] = "handle-redirect-finish"; AttributeKey["RequestStart"] = "request-start"; AttributeKey["RequestFinish"] = "request-finish"; AttributeKey["RequestTimeout"] = "request-timeout"; AttributeKey["HandleResponseError"] = "handle-response-error"; AttributeKey["ProcessResponseStart"] = "process-response-start"; AttributeKey["ProcessResponseFinish"] = "process-response-finish"; })(AttributeKey || (AttributeKey = {})); //# sourceMappingURL=types.js.map