summaryrefslogtreecommitdiff
path: root/docs/ALTSVC.md
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-08-07 14:18:42 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-08-07 14:18:42 +0200
commit2bdb26a507194e3fca08b3ed2a27becf222a517c (patch)
treef9d242dc1e929833506d4d0cdc5a5f6d1559958b /docs/ALTSVC.md
parenteb63b27b6b76ccdb712d0bd4d00d779f658a6390 (diff)
downloadcurl-2bdb26a507194e3fca08b3ed2a27becf222a517c.tar.gz
docs/ALTSVC.md: first basic file format description
Diffstat (limited to 'docs/ALTSVC.md')
-rw-r--r--docs/ALTSVC.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/ALTSVC.md b/docs/ALTSVC.md
index 5aca1c950..e44319ce1 100644
--- a/docs/ALTSVC.md
+++ b/docs/ALTSVC.md
@@ -57,3 +57,24 @@ Experimental support in curl means:
- using `Age:` value for caching age as per spec
- `CURLALTSVC_IMMEDIATELY` support
- `CURLALTSVC_ALTUSED` support
+
+# 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
+
+1. The ALPN id for the source origin
+2. The host name for the source origin
+3. The port number for the source origin
+4. The ALPN id for the destination host
+5. The host name for the destination host
+6. The host number for the destination host
+7. Within double quotes, the expiration date of this entry
+8. Boolean (1 or 0) if "persist" was set for this entry
+9. Integer priority value (not currently used)