Skip to content

magic/http1-constants

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@magic/http1_constants

http 1.1 headers, methods and status codes as constant variables

install

be in a nodejs project.

npm i --save-dev @magic/http1_constants

usage

import constants from '@magic/http1_constants'

constants.headers.X_FORWARDED_FOR === 'x-forwarded-for'

constants.methods.GET === 'GET'

constants.status.OK === 200

changelog

0.0.5 - unreleased
0.0.4
  • update dependencies
0.0.3
  • headers are lowercase
  • npm run build actually builds the types
0.0.2
  • add newer headers
  • all headers are Title-Case
  • update tests
0.0.1

first commit

About

https 1(.1) constants, equivalent to http2.constants node exports.

Resources

License

Stars

Watchers

Forks

Packages

No packages published