Skip to content
This repository was archived by the owner on Nov 6, 2022. It is now read-only.
This repository was archived by the owner on Nov 6, 2022. It is now read-only.

How to determine the boundaries of HTTP header? #493

Closed
@wonter

Description

@wonter

Hi

I am writing an http proxy and parsing HTTP messages using http-parser

In most cases, proxy will add some additional headers such as ‎X-Forwarded-Host, Proxy-Authorization and so on

So i'd like to split HTTP message to 3 parts which is:

  1. original header
  2. additional headers
  3. body

But http-parser doesn't provide some API to help me determine the boundaries of HTTP header

Is there any way to do it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions