HTTP version of requests and TLS #4
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently, the
ServerHttpRequeststruct tracks the HTTP version of the request.As-is, it cannot properly do so for v1.0 and v0.9 requests.
Furthermore, lacks the option to track whether the requested originated from a secure connection (TLS as in HTTPS) in cases where this cannot be inferred from the used HTTP version.
Some web applications might want to make use of this information. While I do agree that there’s a misuse potential (e.g. URL building for links), there are valid use cases as well.
As servers usually reply to such with v1.1 responses anyway, I guess it would be sufficient to rename
V1_1toV1and document that it includes the whole version span of classic HTTP protocols.Yep, makes sense. I've renamed it to
V1, and added some documentation text to explain the scope of each version.