Strong API constants
HTTP protocol useful constants (headers, status codes, content types, methods)
Installation
npm
npm install @vladbasin/strong-api-constants
yarn
yarn add @vladbasin/strong-api-constants
Usage
import { HttpContentTypes, HttpHeaders, HttpRequestMethods, HttpStatusCodes } from '@vladbasin/strong-api-constants';
console.log(HttpHeaders.AcceptCharset);
console.log(HttpRequestMethods.Post);
console.log(HttpContentTypes.ApplicationJson);
console.log(HttpStatusCodes.Accepted);