network-constants.js
Introduction
Just a bunch of network (only HTTP for now) constants for js programs.
Useful when developing network programs or if you want to use HTTP semantics.
Works in node.js + browser, AMD.
Full testsuite. No dependencies.
Fell free to suggest and contribute.
Usage
define(
[
'network-constants/http'
],
function(http_constants) {
"use strict";
console.log( http_constants.methods.get );
console.log( http_constants.status_codes.status_400_client_error_bad_request );
console.log( http_constants.status_messages[404] );
...
Unit tests
in the 'spec' folder. See also readme.txt in the 'test_runner' folder.