Methods for working with the current incoming request and outgoing response. Includes everything from parsing an incoming file upload stream or reading incoming request headers, to setting the content type for a file download or customizing other outgoing response headers.
$ npm install machinepack-reqres
For the latest usage documentation, version information, and test status of this module, see http://node-machine.org/machinepack-reqres. The generated manpages for each machine contain a complete reference of all expected inputs, possible exit states, and example return values. If you need more help, or find a bug, jump into Gitter or leave a message in the project newsgroup.
This is a machinepack, an NPM module which exposes a set of related Node.js machines according to the machinepack specification. Documentation pages for the machines contained in this module (as well as all other NPM-hosted machines for Node.js) are automatically generated and kept up-to-date on the public registry. Learn more at http://node-machine.org/implementing/FAQ.
MIT © 2016 contributors