simple-headers
Parse and serialize http headers.
To use
- Install it:
```bash
$ npm i simple-headers
```
- Require it and use:
```js
var simpleHeaders = require('simple-headers');
```
Example
var simpleHeaders = ; var headerObject = 'content-type': 'text/html;' 'cache-control': 'no-cache'; var serial = simpleHeaders;// "Content-Type: text/html;\r\nCache-Control: no-cache\r\n" simpleHeaders;// {// 'content-type': 'text/html;',// 'cache-control': 'no-cache'// }
License
MIT © 2015 Sunny (darkowlzz)