UNPKG

@tuentyfaiv/http

Version:

Library for http requests based on fetch

20 lines (19 loc) 602 B
declare const HttpMethod: { readonly GET: "GET"; readonly POST: "POST"; readonly PUT: "PUT"; readonly DELETE: "DELETE"; readonly PATCH: "PATCH"; readonly OPTIONS: "OPTIONS"; }; declare const HttpMethodLower: { readonly get: "get"; readonly post: "post"; readonly put: "put"; readonly delete: "delete"; readonly patch: "patch"; readonly options: "options"; }; export type HttpMethods = typeof HttpMethod[keyof typeof HttpMethod]; export type HttpMethodsLower = typeof HttpMethodLower[keyof typeof HttpMethodLower]; export { HttpMethod, HttpMethodLower };