#subtext
HTTP payload parser.
Lead Maintainer: John Brett
subtext is sponsored by Sponsorama.
subtext parses the request body and exposes it in a callback.
## Example
const Http = require('http');
const Subtext = require('subtext');
Http.createServer((request, response) => {
Subtext.parse(request, null, { parse: true, output: 'data' }, (err, parsed) => {
response.writeHead(200, { 'Content-Type': 'text/plain' });
response.end('Payload contains: ' + parsed.payload.toString());
});
}).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');
API
See the API Reference