@vladbasin/strong-api-constants
v1.0.0
Published
Http protocol constants for Strong API framework
Downloads
292
Readme
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);