network-constants
Advanced tools
Comparing version 0.10.0 to 0.11.0
{ | ||
"name": "network-constants.js", | ||
"version": "0.10.0", | ||
"version": "0.11.0", | ||
"description": "a bunch of network (mainly HTTP) constants for js programs (node + browser), AMD", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -120,2 +120,6 @@ // if node.js : use amdefine (add it with npm) | ||
'response_headers' : { | ||
'Location': undefined // Used in redirection, or when a new resource has been created. | ||
}, | ||
'content_types': { | ||
@@ -122,0 +126,0 @@ 'application' : { |
{ | ||
"name": "network-constants", | ||
"version": "0.10.0", | ||
"version": "0.11.0", | ||
"description": "a bunch of network (mainly HTTP) constants for js programs (node + browser), AMD", | ||
@@ -5,0 +5,0 @@ "keywords": "network, constants, http, protocol, browser, server", |
@@ -18,5 +18,5 @@ network-constants.js | ||
Just a bunch of network (only HTTP for now) constants for js programs. | ||
A clean declaration of network constants (only HTTP for now) for js programs. | ||
Useful when developing network programs or if you want to use HTTP semantics. | ||
Useful when developing network programs or if you want to use HTTP semantics (REST API). | ||
@@ -31,2 +31,10 @@ Works in node.js + browser, AMD. | ||
Interesting reads : | ||
http://en.wikipedia.org/wiki/List_of_HTTP_status_codes | ||
http://www.codeshttp.com/ (us / french) | ||
http://benramsey.com/blog/2009/02/http-status-100-continue-corrections/ | ||
http://benramsey.com/blog/2008/04/http-status-201-created-vs-202-accepted/ | ||
http://benramsey.com/blog/2008/05/http-status-204-no-content-and-205-reset-content/ | ||
http://benramsey.com/blog/2008/05/206-partial-content-and-range-requests/ | ||
http://benramsey.com/blog/2009/11/post-vs-put/ | ||
@@ -37,2 +45,4 @@ Usage | ||
```javascript | ||
if (typeof define !== 'function') { var define = require('amdefine')(module); } // node only | ||
define( | ||
@@ -60,2 +70,3 @@ [ | ||
in the 'spec' folder. See also readme.txt in the 'test_runner' folder. | ||
Browser : open test_runner/mocha.html | ||
Node : `npm test` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22580
319
69