A Node.js library for parsing HTTP responses directly from raw over-the-wire byte streams, including support for chunked transfer encoding and Content-Encoding decoding (e.g., gzip). Version 0.0.1 is an early release with basic functionality; the API is unstable and may change before a 1.0 release. It differentiates itself by requiring explicit options (no guessing), making it suitable for low-level HTTP stream processing where control over decoding is critical. The library is intended for use with raw TCP data, such as from proxy captures or WARC files, and plans to be tested against Common Crawl data for robustness.
npm install parse-raw-httpNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates parsing a raw HTTP response with chunked transfer encoding and decoding the body.
Pin to exact version and test thoroughly with each update.
Always provide an options object when calling parseResponse.
Ensure input data is valid raw HTTP bytes before parsing.
Use a different library (e.g., http-parser-js) for parsing HTTP requests.
Run 'npm install parse-raw-http' and ensure it is in dependencies.
Use const { parseResponse } = require('parse-raw-http')Call parseResponse(data, { decodeContentEncoding: true })No dependency data recorded yet.