Skip to content

Parsing / ignoring headers #4

Description

@craff

Currently, only official headers are taking into account and only the value of those headers (no its name) is allocated as a string.
There are two possible amelioration:

  • associate a parsing function to each header, which would for instance avoid allocation all allocation for Content-Length.
  • ignore the header that are not used by a Route. We could imagine something using GADT and mostly automatic for the programmer that would give the list of headers used by a route, all others headers could be completely ignored.

Remark: header parsing and the resulting allocation has been a very big source of speed improvement and much more is possible.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions