Vapor: 4.0.0-rc.3.9 Release

Release date:
March 24, 2020
Previous version:
4.0.0-rc.3.8 (released March 24, 2020)
Magnitude:
26 Diff Delta
Contributors:
1 total committer
Data confidence:
Commits:

Top Contributors in 4.0.0-rc.3.9

gwynne

Directory Browser for 4.0.0-rc.3.9

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

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.