0.0.8 • Published 9 years ago

http-message v0.0.8

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

Build Status

node-http-message

Small library to create HTTP Messages.

What is supported

At this moment only http 1.0 is supported. We do not do any sanity checks on the values passed to HTTPMessage, so it might happen that you end up with GET request containing a body, or headers with the same name (Javascript is case sensitive while HTTP is not).

##Syntax

var HTTPMessage = require('http-message');
var msg = new HTTPMessage();
msg.setRequest("POST", "/some/path");
msg.setHeaders({"Connection": "Close", "Accept": "*/*"});
msg.setBody("MyBody");
var httpMessage = msg.render();
0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago