CrowdHailer / raxx

Interface for HTTP webservers, frameworks and clients
https://hexdocs.pm/raxx
Apache License 2.0
402 stars 29 forks source link

virtual hosting and the mount field #48

Closed CrowdHailer closed 7 years ago

CrowdHailer commented 7 years ago

Host header

All information in the host header is duplicated in other parts the request struct. The Host header is always required.

Therefore should the host header be deleted from this list of headers? It should never be relied on and users building request might add a host field but not a host header

Virtual host

Can the Host header have a path in the URL?

Raxx.Request.host + Raxx.Request.mount = virtual host

Router.host instead of Router.mount

In HTTP/2 can the authority header have a path component

CrowdHailer commented 6 years ago

No a Host header cannot contain a path component