HTTP Header Parser
HTTP Header Parser lets you split HTTP-style header lines at the first colon and preserve repeated names. Enter your own values or load the worked example.
- Copy or download the computed result
- Adjust headers
- See the processing method and limits
Method and calculation
Split HTTP-style header lines at the first colon and preserve repeated names.
Inputs and settings
HTTP Header Parser accepts Headers.
Worked example
HTTP Header Parser example — Headers: "Content-Type: application/json\nCache-Control: no-cache". Computed output: { "content-type": [ "application/json" ], "cache-control": [ "no-cache" ] }
Output and limitations
HTTP Header Parser: Input is treated as plain text; it is never executed.
Technical references: JavaScript Unicode normalization
HTTP Header Parser FAQs
HTTP Header Parser applies the following rule to your input: Split HTTP-style header lines at the first colon and preserve repeated names. The worked example on this page uses the same processor as the result button.
HTTP Header Parser has these boundaries: Input is treated as plain text; it is never executed. Start by checking the headers field against the units or format shown.
HTTP Header Parser provides this sample: { "content-type": [ "application/json" ], "cache-control": [ "no-cache" ] }. Use the sample button to reproduce it, then replace the inputs with your own values.