Comparing version 1.0.0 to 1.0.1
15
index.js
var httpConst = { | ||
methods: { | ||
get: 'GET', | ||
head: 'HEAD', | ||
post: 'POST', | ||
put: 'PUT', | ||
'delete': 'DELETE' | ||
del: 'DELETE', | ||
trace: 'TRACE', | ||
options: 'OPTIONS', | ||
connect: 'CONNECT', | ||
patch: 'PATCH' | ||
}, | ||
@@ -29,2 +34,3 @@ | ||
xWwwFormUrlencoded: 'application/x-www-form-urlencoded', | ||
json: 'application/json', | ||
plain: 'text/plain' | ||
@@ -39,5 +45,10 @@ }, | ||
httpConst.methods.get, | ||
httpConst.methods.head, | ||
httpConst.methods.post, | ||
httpConst.methods.put, | ||
httpConst.methods['delete'] | ||
httpConst.methods.del, | ||
httpConst.methods.trace, | ||
httpConst.methods.options, | ||
httpConst.methods.connect, | ||
httpConst.methods.patch | ||
], | ||
@@ -44,0 +55,0 @@ |
{ | ||
"name": "http-const", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "HTTP constants: methods, protocols, headers, etc.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
1872
58