{"library":"consume-http-header","type":"library","category":null,"description":"Consume an HTTP request or response stream until all headers have been read, leaving the stream ready to consume the body from the start. Version 1.0.0 is stable with a simple callback-based API. It parses headers from a TCP stream (e.g., net.Socket) and returns the parsed headers object. Lightweight, no dependencies, and focused solely on header consumption without handling chunked transfer encoding or body parsing. Alternatives like `http-parser-js` provide more complete parsing but are heavier.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript","http","header","headers","stream","socket","tcp","parse","parser"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install consume-http-header","imports":["const consume = require('consume-http-header')","const consume = require('consume-http-header')","const consume = require('consume-http-header')"]},{"cmd":"yarn add consume-http-header","imports":[]},{"cmd":"pnpm add consume-http-header","imports":[]}],"homepage":"https://github.com/watson/consume-http-header#readme","github":"https://github.com/watson/consume-http-header","docs":null,"changelog":null,"pypi":null,"npm":"consume-http-header","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}