request-info
Get information about an http request.
Install
Install with npm:
$ npm install --save request-info
Usage
var info = require('request-info');
API
Get information information about the given http request. Some of the adapted from https://github.com/joola/joola.io.express/blob/master/index.js#L39-L50
Params
req
{Object}: http request object (from http or express)returns
{Object}: info object containing httpVersion
, ip
, method
, referer
, url
, and ua
(useragent information)
Example
console.log(info(req));
About
Related projects
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Building docs
(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)
To generate the readme and API documentation with verb:
$ npm install -g verb verb-generate-readme && verb
Running tests
Install dev dependencies:
$ npm install -d && npm test
Author
Brian Woodward
License
Copyright © 2016, Brian Woodward.
Released under the MIT license.
This file was generated by verb-generate-readme, v0.1.30, on August 29, 2016.