This patch was authored and released by @tanner0101.
Adds support for parsing HTTP forwarded header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded
req.headers.forwarded.first?.for // String?
This includes support for:
Forwarded
Via
X-Forwarded-For
X-Forwarded-Host
X-Forwarded-Proto
Adds support for parsing HTTP content disposition headers: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition
req.headers.contentDisposition?.filename // String?
These are implemented by a new HTTPHeaders.DirectiveParser
for handling the complexities of HTTP header parsing like quoted strings, whitespace, etc. The new HTTPHeaders.DirectiveSerializer
handles serialization. HTTPHeaderValue
has been deprecated.