mirror of
https://github.com/curl/curl.git
synced 2024-12-27 06:59:43 +08:00
519b62ccd0
The tools.ietf.org domain has been deprecated a while now, with the links being redirected to datatracker.ietf.org. Rather than make people eat that redirect time, this change switches the URL to a more canonical source. Closes #8317
1.1 KiB
1.1 KiB
Alt-Svc
curl features support for the Alt-Svc: HTTP header.
Enable Alt-Svc in build
./configure --enable-alt-svc
(enabled by default since 7.73.0)
Standard
Alt-Svc cache file format
This a text based file with one line per entry and each line consists of nine space separated fields.
Example
h2 quic.tech 8443 h3-22 quic.tech 8443 "20190808 06:18:37" 0 0
Fields
- The ALPN id for the source origin
- The host name for the source origin
- The port number for the source origin
- The ALPN id for the destination host
- The host name for the destination host
- The host number for the destination host
- The expiration date and time of this entry within double quotes. The date format is "YYYYMMDD HH:MM:SS" and the time zone is GMT.
- Boolean (1 or 0) if "persist" was set for this entry
- Integer priority value (not currently used)
TODO
- handle multiple response headers, when one of them says
clear
(should override them all) - using
Age:
value for caching age as per spec CURLALTSVC_IMMEDIATELY
support