Leer cabeceras HTTP
http-headers-parseConvierte un bloque de encabezados HTTP crudos en un objeto con nombres en minúscula. Cuándo: hay que leer, construir o revisar con exactitud una URL, una cabecera HTTP, un token, una versión, un rango de IP, un documento HTML o Markdown o un archivo para agentes. No para: convertir entre fecha HTTP (http-date). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Parses a raw HTTP header block (optionally starting with a request or status line) into an object with lowercase names; repeated headers become arrays (Set-Cookie always an array). When: a URL, HTTP header, token, version string, IP range, HTML or Markdown document or agent-readiness file has to be parsed, built or checked exactly. Not for: converting between HTTP-date (http-date). [EN completo / full EN: inputSchema.description]
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"raw": "<raw>"
},
"name": "http-headers-parse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | Yes | Raw headers (string; required). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| headers | No | ||
| start_line | No | ||
| invalid_lines | No |