UNPKG

retrofit-axios-ts

Version:

A declarative and axios based retrofit implementation for JavaScript and TypeScript.

20 lines (19 loc) 867 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NON_HTTP_REQUEST_PROPERTY_NAME = exports.RetrofitError = exports.HttpContentType = exports.DATA_CONTENT_TYPES = void 0; const axios_1 = require("axios"); exports.DATA_CONTENT_TYPES = [ "application/x-www-form-urlencoded", "multipart/form-data", "application/json", "text/xml", ]; var HttpContentType; (function (HttpContentType) { HttpContentType["urlencoded"] = "application/x-www-form-urlencoded"; HttpContentType["multipart"] = "multipart/form-data"; HttpContentType["json"] = "application/json"; HttpContentType["xml"] = "text/xml"; })(HttpContentType = exports.HttpContentType || (exports.HttpContentType = {})); exports.RetrofitError = axios_1.AxiosError; exports.NON_HTTP_REQUEST_PROPERTY_NAME = "__nonHTTPRequestMethod__";