]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
docs/cmdline-opts: unify HTTP version style in --help output
authorDaniel Stenberg <daniel@haxx.se>
Mon, 3 Mar 2025 11:13:38 +0000 (12:13 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 3 Mar 2025 22:09:19 +0000 (23:09 +0100)
$ curl -h all | grep -- --http

Now:

     --http0.9                      Allow HTTP/0.9 responses
 -0, --http1.0                      Use HTTP/1.0
     --http1.1                      Use HTTP/1.1
     --http2                        Use HTTP/2
     --http2-prior-knowledge        Use HTTP/2 without HTTP/1.1 Upgrade
     --http3                        Use HTTP/3
     --http3-only                   Use HTTP/3 only

Before:

     --http0.9                      Allow HTTP 0.9 responses
 -0, --http1.0                      Use HTTP 1.0
     --http1.1                      Use HTTP 1.1
     --http2                        Use HTTP/2
     --http2-prior-knowledge        Use HTTP 2 without HTTP/1.1 Upgrade
     --http3                        Use HTTP v3
     --http3-only                   Use HTTP v3 only

Closes #16542

docs/cmdline-opts/http0.9.md
docs/cmdline-opts/http1.0.md
docs/cmdline-opts/http1.1.md
docs/cmdline-opts/http2-prior-knowledge.md
docs/cmdline-opts/http3-only.md
docs/cmdline-opts/http3.md
src/tool_listhelp.c

index 54ef3231564d01514104fd88f9eae11aca27389c..41b76ffd7cdc961e33591950a1352b68f980da60 100644 (file)
@@ -4,7 +4,7 @@ SPDX-License-Identifier: curl
 Long: http0.9
 Tags: Versions
 Protocols: HTTP
-Help: Allow HTTP 0.9 responses
+Help: Allow HTTP/0.9 responses
 Category: http
 Added: 7.64.0
 Multi: boolean
index b810ccf3b70305b60ec9342c33e74e34ef93b5ad..0252f05230467efce5fb09d9dedaf15177b50f03 100644 (file)
@@ -7,7 +7,7 @@ Tags: Versions
 Protocols: HTTP
 Added: 7.9.1
 Mutexed: http1.1 http2 http2-prior-knowledge http3
-Help: Use HTTP 1.0
+Help: Use HTTP/1.0
 Category: http
 Multi: mutex
 See-also:
index a223da1f9de97c9c8e7a09ee3e4d57d25119d221..14e5c74702aaa5612a75449067862d2a9772abce 100644 (file)
@@ -6,7 +6,7 @@ Tags: Versions
 Protocols: HTTP
 Added: 7.33.0
 Mutexed: http1.0 http2 http2-prior-knowledge http3
-Help: Use HTTP 1.1
+Help: Use HTTP/1.1
 Category: http
 Multi: mutex
 See-also:
index 5dffe26a732ef9e85103112a07d6aad1b665cdbc..25a32db7a1fc7c2179372877d776909a6e4cd332 100644 (file)
@@ -7,7 +7,7 @@ Protocols: HTTP
 Added: 7.49.0
 Mutexed: http1.1 http1.0 http2 http3
 Requires: HTTP/2
-Help: Use HTTP 2 without HTTP/1.1 Upgrade
+Help: Use HTTP/2 without HTTP/1.1 Upgrade
 Category: http
 Multi: boolean
 See-also:
index c565f8b95d3f18cae3166f5dd52976701aa62c1d..0ee5f1887e6840555bc58dfff58b5f0e93176075 100644 (file)
@@ -7,7 +7,7 @@ Protocols: HTTP
 Added: 7.88.0
 Mutexed: http1.1 http1.0 http2 http2-prior-knowledge http3
 Requires: HTTP/3
-Help: Use HTTP v3 only
+Help: Use HTTP/3 only
 Category: http
 Multi: mutex
 See-also:
index b5272a60f5ed7eb734004b25d3aed6a7d5554e3b..a66d7978297efb9fbb9c7687e045f7c50cdd7618 100644 (file)
@@ -7,7 +7,7 @@ Protocols: HTTP
 Added: 7.66.0
 Mutexed: http1.1 http1.0 http2 http2-prior-knowledge http3-only
 Requires: HTTP/3
-Help: Use HTTP v3
+Help: Use HTTP/3
 Category: http
 Multi: mutex
 See-also:
index c79859d2d27a50598b15d46d02ed2d70eb5c1035..4605bf9cf02fa9f09f3875a61561deb221c01ce2 100644 (file)
@@ -279,25 +279,25 @@ const struct helptxt helptext[] = {
    "Enable HSTS with this cache file",
    CURLHELP_HTTP},
   {"    --http0.9",
-   "Allow HTTP 0.9 responses",
+   "Allow HTTP/0.9 responses",
    CURLHELP_HTTP},
   {"-0, --http1.0",
-   "Use HTTP 1.0",
+   "Use HTTP/1.0",
    CURLHELP_HTTP},
   {"    --http1.1",
-   "Use HTTP 1.1",
+   "Use HTTP/1.1",
    CURLHELP_HTTP},
   {"    --http2",
    "Use HTTP/2",
    CURLHELP_HTTP},
   {"    --http2-prior-knowledge",
-   "Use HTTP 2 without HTTP/1.1 Upgrade",
+   "Use HTTP/2 without HTTP/1.1 Upgrade",
    CURLHELP_HTTP},
   {"    --http3",
-   "Use HTTP v3",
+   "Use HTTP/3",
    CURLHELP_HTTP},
   {"    --http3-only",
-   "Use HTTP v3 only",
+   "Use HTTP/3 only",
    CURLHELP_HTTP},
   {"    --ignore-content-length",
    "Ignore the size of the remote resource",