mirror of
https://github.com/curl/curl.git
synced 2026-08-26 04:03:32 +03:00
CURLOPT_ALTSVC_CTRL.3: mention conn reuse is preferred
Ref: https://github.com/curl/curl/discussions/7954 Closes #7957
This commit is contained in:
parent
57370855d0
commit
c6a66ccb5f
1 changed files with 6 additions and 2 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
.\" * | (__| |_| | _ <| |___
|
.\" * | (__| |_| | _ <| |___
|
||||||
.\" * \___|\___/|_| \_\_____|
|
.\" * \___|\___/|_| \_\_____|
|
||||||
.\" *
|
.\" *
|
||||||
.\" * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
|
.\" * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
.\" *
|
.\" *
|
||||||
.\" * This software is licensed as described in the file COPYING, which
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
.\" * you should have received as part of this distribution. The terms
|
.\" * you should have received as part of this distribution. The terms
|
||||||
|
|
@ -38,11 +38,15 @@ CURLcode curl_easy_setopt(CURL *handle, CURLOPT_ALTSVC_CTRL, long bitmask);
|
||||||
Populate the long \fIbitmask\fP with the correct set of features to instruct
|
Populate the long \fIbitmask\fP with the correct set of features to instruct
|
||||||
libcurl how to handle Alt-Svc for the transfers using this handle.
|
libcurl how to handle Alt-Svc for the transfers using this handle.
|
||||||
|
|
||||||
libcurl will only accept Alt-Svc headers over a secure transport, meaning
|
libcurl only accepts Alt-Svc headers over a secure transport, meaning
|
||||||
HTTPS. It will also only complete a request to an alternative origin if that
|
HTTPS. It will also only complete a request to an alternative origin if that
|
||||||
origin is properly hosted over HTTPS. These requirements are there to make
|
origin is properly hosted over HTTPS. These requirements are there to make
|
||||||
sure both the source and the destination are legitimate.
|
sure both the source and the destination are legitimate.
|
||||||
|
|
||||||
|
Alternative services are only used when setting up new connections. If there
|
||||||
|
exists an existing connection to the host in the connection pool, then that
|
||||||
|
will be preferred.
|
||||||
|
|
||||||
Setting any bit will enable the alt-svc engine.
|
Setting any bit will enable the alt-svc engine.
|
||||||
.IP "CURLALTSVC_READONLYFILE"
|
.IP "CURLALTSVC_READONLYFILE"
|
||||||
Do not write the alt-svc cache back to the file specified with
|
Do not write the alt-svc cache back to the file specified with
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue