How do you determine which version of the HTTP protocol to use when building the HTTP request line?
The current mainstream HTTP protocol versions are HTTP/1.1, HTTP/2, HTTP/3 (experimental). The specific version used when the request occurs is determined by the client, and the client and the server negotiate together. For example, a client that supports HTTP/2 will indicate that it supports h2 and http/1.1 in the ALPN (Application-Layer Protocol Negotiation) extension when […]