curl/lib/vquic
Stefan Eissing e83818cae1
lib: clarify 'conn->httpversion'
The variable `conn->httpversion` was used for several purposes and it
was unclear at which time the value represents what.

- rename `conn->httpversion` to `conn->httpversion_seen`
  This makes clear that the variable only records the last
  HTTP version seen on the connection - if any. And that it
  no longer is an indication of what version to use.
- Change Alt-Svc handling to no longer modify `conn->httpversion`
  but set `data->state.httpwant` for influencing the HTTP version
  to use on a transfer.
- Add `data->req.httpversion_sent` to have a record of what
  HTTP version was sent in a request
- Add connection filter type CF_TYPE_HTTP
- Add filter query `CF_QUERY_HTTP_VERSION` to ask what HTTP
  filter version is in place
- Lookup filters HTTP version instead of using `conn->httpversion`

Test test_12_05 now switches to HTTP/1.1 correctly and the
expectations have been fixed.

Removed the connection fitler "is_httpN()" checks and using
the version query instead.

Closes #16073
2025-01-24 10:59:02 +01:00
..
.checksrc checksrc: use 'banfunc' proper in more places 2025-01-13 09:10:58 +01:00
curl_msh3.c lib: clarify 'conn->httpversion' 2025-01-24 10:59:02 +01:00
curl_msh3.h quic: rename vquic implementations, fix for quiche build. 2023-01-05 23:39:49 +01:00
curl_ngtcp2.c lib: clarify 'conn->httpversion' 2025-01-24 10:59:02 +01:00
curl_ngtcp2.h ngtcp2: adjust config and code checks for ngtcp2 without nghttp3 2023-03-23 15:39:13 +01:00
curl_osslq.c lib: clarify 'conn->httpversion' 2025-01-24 10:59:02 +01:00
curl_osslq.h http3: initial support for OpenSSL 3.2 QUIC stack 2024-01-22 16:15:45 +01:00
curl_quiche.c lib: clarify 'conn->httpversion' 2025-01-24 10:59:02 +01:00
curl_quiche.h quic: rename vquic implementations, fix for quiche build. 2023-01-05 23:39:49 +01:00
vquic_int.h lib: merge ENABLE_QUIC C macro into USE_HTTP3 2024-04-13 08:33:27 +00:00
vquic-tls.c QUIC: 0RTT for gnutls via CURLSSLOPT_EARLYDATA 2024-12-23 17:07:15 +01:00
vquic-tls.h QUIC: 0RTT for gnutls via CURLSSLOPT_EARLYDATA 2024-12-23 17:07:15 +01:00
vquic.c lib: clarify 'conn->httpversion' 2025-01-24 10:59:02 +01:00
vquic.h lib: clarify 'conn->httpversion' 2025-01-24 10:59:02 +01:00