{"_id":"http-string-parser","_rev":"24-abd50c2f13b6f3262b21363a7d6c9951","name":"http-string-parser","description":"Parse HTTP Request and Response from String","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.0":{"name":"http-string-parser","version":"0.0.0","description":"Parse HTTP Request and Response from String","main":"lib/parser.js","scripts":{"test":"scripts/test","prepublish":"scripts/prepublish"},"repository":{"type":"git","url":"https://github.com/apiaryio/http-string-parser"},"dependencies":{},"devDependencies":{"coffee-script":"1.6.3","mocha":"1.11.0","chai":"1.7.1","curl-trace-parser":""},"keywords":["http","message","request","response","parser","string","raw","bare"],"author":{"name":"Adam Kliment","email":"adam@apiary.io"},"license":"MIT","_id":"http-string-parser@0.0.0","dist":{"shasum":"c0db1105979b156fad4730320f0297dc32863b46","tarball":"https://registry.npmjs.org/http-string-parser/-/http-string-parser-0.0.0.tgz","integrity":"sha512-IDhR56trrPgbAP/qNWAXHuPGqd8bLq3LS0seRMaZNZRs35jPYQrbArkVkGT9eEZ/RNe2Hnk2a11EL8mamAB1RQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrcwGL8nKKe03pWDqJPRIdY08Ey6LQjJ1yF52srKSgFQIgf/lsZApNVd7xIRC3hriAKpRNG3GT/H35iXGEBEygiR4="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"netmilk","email":"adam@apiary.io"},"maintainers":[{"name":"netmilk","email":"adam@apiary.io"}],"directories":{}},"0.0.1":{"name":"http-string-parser","version":"0.0.1","description":"Parse HTTP Request and Response from String","main":"lib/parser.js","scripts":{"test":"scripts/test","prepublish":"scripts/prepublish"},"repository":{"type":"git","url":"https://github.com/apiaryio/http-string-parser"},"dependencies":{},"devDependencies":{"coffee-script":"1.6.3","mocha":"1.11.0","chai":"1.7.1","curl-trace-parser":""},"keywords":["http","message","request","response","parser","string","raw","bare"],"author":{"name":"Adam Kliment","email":"adam@apiary.io"},"license":"MIT","_id":"http-string-parser@0.0.1","dist":{"shasum":"b8f55637ec5af6f480271b6dd88581c514850012","tarball":"https://registry.npmjs.org/http-string-parser/-/http-string-parser-0.0.1.tgz","integrity":"sha512-xfSHUR0XLfdiX4h+8zE25/wCGnu1s1lJUzEcgoxXGCkpkYyJRp4cK4Dkz0dAVRI3ULWjR0kv3iiVz+W60ZS2bQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBIsZJTWyTfPF/kgTnfp2+NDTdudGtRtpsKT0JB/qs4TAiEAshHLbcFtsxEfqMSESQd7iFdccGXTI5D3G+/QZUGAcVQ="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"netmilk","email":"adam@apiary.io"},"maintainers":[{"name":"netmilk","email":"adam@apiary.io"}],"directories":{}},"0.0.3":{"name":"http-string-parser","version":"0.0.3","description":"Parse HTTP Request and Response from String","main":"lib/parser.js","scripts":{"test":"scripts/test","prepublish":"scripts/prepublish"},"repository":{"type":"git","url":"https://github.com/apiaryio/http-string-parser"},"dependencies":{},"devDependencies":{"coffee-script":"1.6.3","mocha":"1.11.0","chai":"1.7.1","curl-trace-parser":""},"keywords":["http","message","request","response","parser","string","raw","bare"],"author":{"name":"Adam Kliment","email":"adam@apiary.io"},"license":"MIT","bugs":{"url":"https://github.com/apiaryio/http-string-parser/issues"},"_id":"http-string-parser@0.0.3","dist":{"shasum":"b11ebc49ce44a221f5e557c24e20548d32df4ec3","tarball":"https://registry.npmjs.org/http-string-parser/-/http-string-parser-0.0.3.tgz","integrity":"sha512-fvMrVoBhhaI/ZN9Verldp7Ah9FCAMQGNYnI67tSaIXXdo1n+8sDgxrFQFp8w4s76OI9YFH5RHjCnz5tms8i5iA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0zIDDTFInZB//7poZr42NwAlIQtxRkA6AJY2BgP0DhwIgEyauZ/hkH/h12j7I1YrWlr7WxqR6kbcEdVdoqbe2Sbg="}]},"_from":".","_npmVersion":"1.3.4","_npmUser":{"name":"netmilk","email":"adam@apiary.io"},"maintainers":[{"name":"netmilk","email":"adam@apiary.io"}],"directories":{}},"0.0.4":{"name":"http-string-parser","version":"0.0.4","description":"Parse HTTP Request and Response from String","main":"lib/parser.js","scripts":{"test":"scripts/test","prepublish":"scripts/prepublish"},"repository":{"type":"git","url":"https://github.com/apiaryio/http-string-parser"},"dependencies":{},"devDependencies":{"coffee-script":"1.6.3","mocha":"1.11.0","chai":"1.7.1","curl-trace-parser":""},"keywords":["http","message","request","response","parser","string","raw","bare"],"author":{"name":"Adam Kliment","email":"adam@apiary.io"},"license":"MIT","bugs":{"url":"https://github.com/apiaryio/http-string-parser/issues"},"_id":"http-string-parser@0.0.4","dist":{"shasum":"6b2538e3520d42b349a0ac4b7234e0e39476c5b3","tarball":"https://registry.npmjs.org/http-string-parser/-/http-string-parser-0.0.4.tgz","integrity":"sha512-PC1EOjo0+zBYx8F3gVVS2A5M1DVrP0243OWPoTUnFb7Ovl/WeuNrm6LtM3A/6t0yWbn4Roc6GGVmYPmj/yfTMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKPmj1Z7pKFS5pLcd4RAgqNk/+LYy2vwHK838SF3pSZgIhAJa//sDySHkoezt3DOGJDRSOwaRMcnZzy0R1YOwcHIws"}]},"_from":".","_npmVersion":"1.3.4","_npmUser":{"name":"netmilk","email":"adam@apiary.io"},"maintainers":[{"name":"netmilk","email":"adam@apiary.io"}],"directories":{}},"0.0.5":{"name":"http-string-parser","version":"0.0.5","description":"Parse HTTP Request and Response from String","main":"lib/parser.js","scripts":{"test":"scripts/test","prepublish":"scripts/prepublish"},"repository":{"type":"git","url":"https://github.com/apiaryio/http-string-parser"},"dependencies":{},"devDependencies":{"coffee-script":"1.6.3","mocha":"1.11.0","chai":"1.7.1","curl-trace-parser":""},"keywords":["http","message","request","response","parser","string","raw","bare"],"author":{"name":"Adam Kliment","email":"adam@apiary.io"},"license":"MIT","gitHead":"48d0d53ebace2ed31332b00edecc5d18f7363087","bugs":{"url":"https://github.com/apiaryio/http-string-parser/issues"},"homepage":"https://github.com/apiaryio/http-string-parser","_id":"http-string-parser@0.0.5","_shasum":"8f2da0781fe0a6e480343f53d2ecf93af86461c8","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"netmilk","email":"adam@apiary.io"},"maintainers":[{"name":"netmilk","email":"adam@apiary.io"},{"name":"almad","email":"bugs@almad.net"},{"name":"tu1ly","email":"tully@apiary.io"},{"name":"kubakubula","email":"kubula@apiary.io"}],"dist":{"shasum":"8f2da0781fe0a6e480343f53d2ecf93af86461c8","tarball":"https://registry.npmjs.org/http-string-parser/-/http-string-parser-0.0.5.tgz","integrity":"sha512-FkCmL/0xBqlvuHA49hZVkPU9koYkh+t6pbhWGmkd/Scb9ncSIh4v1NU16xZTee6v6wPVF3j66Hq+kotZwxm73g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCev8A/hnLeyX4fmH34bgA94hh5X2knzA7zJggCmBz8YQIgBhSse35o5mLBfsgILut+lmDDewPEFO16FnztStS7QFE="}]},"directories":{}},"0.0.6":{"name":"http-string-parser","version":"0.0.6","description":"Parse HTTP Request and Response from String","main":"lib/parser.js","scripts":{"test":"scripts/test","prepublish":"scripts/prepublish"},"repository":{"type":"git","url":"git+https://github.com/apiaryio/http-string-parser.git"},"dependencies":{},"devDependencies":{"coffee-script":"1.6.3","mocha":"1.11.0","chai":"1.7.1","curl-trace-parser":""},"keywords":["http","message","request","response","parser","string","raw","bare"],"author":{"name":"Adam Kliment","email":"adam@apiary.io"},"license":"MIT","gitHead":"da203965301b4442a157279e1e9a105df36b10e4","bugs":{"url":"https://github.com/apiaryio/http-string-parser/issues"},"homepage":"https://github.com/apiaryio/http-string-parser#readme","_id":"http-string-parser@0.0.6","_shasum":"4088a1aba2b89155ce13918bcfb5cbbea6c4e7e9","_from":".","_npmVersion":"4.4.4","_nodeVersion":"6.10.2","_npmUser":{"name":"honzajavorek","email":"mail@honzajavorek.cz"},"dist":{"shasum":"4088a1aba2b89155ce13918bcfb5cbbea6c4e7e9","tarball":"https://registry.npmjs.org/http-string-parser/-/http-string-parser-0.0.6.tgz","integrity":"sha512-sngOeBkIL32kum4Z+FulU+3Ve41B3js1IKfel0WAhwLqDJiUPC1UTqFRBr2/IDw9dbks6B4xSIYgPiJU7ivxww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChlnvZu1ciHNDveacSZtcmL5AtZR+GkZNLPprDRIXY/wIgVK9aN0xyjJcbwZvycF62MDC1bGF0sORzKyOIDI6mnXc="}]},"maintainers":[{"name":"almad","email":"bugs@almad.net"},{"name":"apiary-sre","email":"sre@apiary.io"},{"name":"honzajavorek","email":"mail@honzajavorek.cz"},{"name":"kubakubula","email":"kubula@apiary.io"},{"name":"netmilk","email":"adam@apiary.io"},{"name":"tu1ly","email":"tully@apiary.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http-string-parser-0.0.6.tgz_1496653739957_0.9824521038681269"},"directories":{}}},"readme":"# http-string-parser\n\n[![NPM Version](https://img.shields.io/npm/v/http-string-parser.svg)](https://www.npmjs.com/package/http-string-parser)\n[![Build Status](https://travis-ci.org/apiaryio/http-string-parser.png)](https://travis-ci.org/apiaryio/http-string-parser)\n[![Dependency Status](https://david-dm.org/apiaryio/http-string-parser.png)](https://david-dm.org/apiaryio/http-string-parser)\n[![devDependency Status](https://david-dm.org/apiaryio/http-string-parser/dev-status.png)](https://david-dm.org/apiaryio/http-string-parser#info=devDependencies)\n\nParse HTTP messages (Request and Response) from raw string in Node.JS\n\n## Parse HTTP Messages\n```javascript\nvar parser = require('http-string-parser');\n\nrequest = parser.parseRequest(requestString);\nresponse = parser.parseResponse(responseString);\n\nconsole.log(request);\nconsole.log(response);\n```\n\nSee more about [Request][request] and [Response][response] data model.\n\n[request]: https://www.relishapp.com/apiary/gavel/docs/data-model#http-request\n[response]: https://www.relishapp.com/apiary/gavel/docs/data-model#http-response\n\n## API Reference\n\n`parseRequest(requestString)`\n\n`parseRequestLine(requestLine)`\n\n`parseResponse(responseString)`\n\n`parseStatusLine(statusLine)`\n\n`parseHeaders(headersLinesArray)`\n\n- - - \n\nNOTE: Proof of concept, naive HTTP parsing, wheel re-inventation. In future it may be replaced with better parser from [Node.JS core's C bindings of NGINX HTTP parser](https://github.com/joyent/http-parser) or [PEG.js HTTP parser](https://npmjs.org/package/http-pegjs)\n\n","maintainers":[{"email":"jakub.koral@gmail.com","name":"kubakubula"},{"email":"sre@apiary.io","name":"apiary-sre"}],"time":{"modified":"2022-06-18T22:17:17.202Z","created":"2013-07-23T10:17:27.189Z","0.0.0":"2013-07-23T10:17:30.251Z","0.0.1":"2013-07-23T15:21:46.860Z","0.0.3":"2013-07-25T08:34:57.857Z","0.0.4":"2013-07-25T08:39:14.829Z","0.0.5":"2015-05-11T11:39:44.249Z","0.0.6":"2017-06-05T09:09:00.895Z"},"author":{"name":"Adam Kliment","email":"adam@apiary.io"},"repository":{"type":"git","url":"git+https://github.com/apiaryio/http-string-parser.git"},"users":{"tunnckocore":true},"keywords":["http","message","request","response","parser","string","raw","bare"],"bugs":{"url":"https://github.com/apiaryio/http-string-parser/issues"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/apiaryio/http-string-parser#readme"}