retrofit-axios-ts
Version:
A declarative and axios based retrofit implementation for JavaScript and TypeScript.
12 lines (11 loc) • 461 B
TypeScript
import { AxiosError, Method } from "axios";
export type HttpMethod = Method;
export declare const DATA_CONTENT_TYPES: string[];
export declare enum HttpContentType {
urlencoded = "application/x-www-form-urlencoded",
multipart = "multipart/form-data",
json = "application/json",
xml = "text/xml"
}
export declare const RetrofitError: typeof AxiosError;
export declare const NON_HTTP_REQUEST_PROPERTY_NAME = "__nonHTTPRequestMethod__";