mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
docs/cmdline-opts: unify HTTP version style in --help output
$ 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
This commit is contained in:
parent
48ba23070a
commit
aa18891dda
@ -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
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user