mirror of
https://github.com/curl/curl.git
synced 2026-08-24 10:43:32 +03:00
alt-svc: enable by default
Remove CURLALTSVC_IMMEDIATELY, which was never implemented/supported. alt-svc support in curl is no longer considered experimental Closes #5868
This commit is contained in:
parent
e2bcdf557b
commit
96450a1a33
27 changed files with 58 additions and 71 deletions
|
|
@ -1,11 +1,13 @@
|
|||
# Alt-Svc
|
||||
|
||||
curl features **EXPERIMENTAL** support for the Alt-Svc: HTTP header.
|
||||
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
|
||||
|
||||
[RFC 7838](https://tools.ietf.org/html/rfc7838)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
# Code defines to disable features and protocols
|
||||
|
||||
## CURL_DISABLE_ALTSVC
|
||||
|
||||
Disable support for Alt-Svc: HTTP headers.
|
||||
|
||||
## CURL_DISABLE_COOKIES
|
||||
|
||||
Disable support for HTTP cookies.
|
||||
|
|
|
|||
|
|
@ -19,5 +19,4 @@ Experimental support in curl means:
|
|||
## Experimental features right now
|
||||
|
||||
- HTTP/3 support and options
|
||||
- alt-svc support and options
|
||||
- CURLSSLOPT_NATIVE_CA (No configure option, feature built in when supported)
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ Build curl
|
|||
% git clone https://github.com/curl/curl
|
||||
% cd curl
|
||||
% ./buildconf
|
||||
% LDFLAGS="-Wl,-rpath,<somewhere1>/lib" ./configure --with-ssl=<somewhere1> --with-nghttp3=<somewhere2> --with-ngtcp2=<somewhere3> --enable-alt-svc
|
||||
% LDFLAGS="-Wl,-rpath,<somewhere1>/lib" ./configure --with-ssl=<somewhere1> --with-nghttp3=<somewhere2> --with-ngtcp2=<somewhere3>
|
||||
% make
|
||||
|
||||
## Build with GnuTLS
|
||||
|
|
@ -105,7 +105,7 @@ Build curl
|
|||
% git clone https://github.com/curl/curl
|
||||
% cd curl
|
||||
% ./buildconf
|
||||
% ./configure --without-ssl --with-gnutls=<somewhere1> --with-nghttp3=<somewhere2> --with-ngtcp2=<somewhere3> --enable-alt-svc
|
||||
% ./configure --without-ssl --with-gnutls=<somewhere1> --with-nghttp3=<somewhere2> --with-ngtcp2=<somewhere3>
|
||||
% make
|
||||
|
||||
# quiche version
|
||||
|
|
@ -126,7 +126,7 @@ Build curl:
|
|||
% git clone https://github.com/curl/curl
|
||||
% cd curl
|
||||
% ./buildconf
|
||||
% ./configure LDFLAGS="-Wl,-rpath,$PWD/../quiche/target/release" --with-ssl=$PWD/../quiche/deps/boringssl/src --with-quiche=$PWD/../quiche/target/release --enable-alt-svc
|
||||
% ./configure LDFLAGS="-Wl,-rpath,$PWD/../quiche/target/release" --with-ssl=$PWD/../quiche/deps/boringssl/src --with-quiche=$PWD/../quiche/target/release
|
||||
% make
|
||||
|
||||
## Run
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
.\" * | (__| |_| | _ <| |___
|
||||
.\" * \___|\___/|_| \_\_____|
|
||||
.\" *
|
||||
.\" * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
.\" * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
.\" *
|
||||
.\" * This software is licensed as described in the file COPYING, which
|
||||
.\" * you should have received as part of this distribution. The terms
|
||||
|
|
@ -29,11 +29,6 @@ CURLOPT_ALTSVC \- set alt-svc cache file name
|
|||
|
||||
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_ALTSVC, char *filename);
|
||||
.fi
|
||||
.SH EXPERIMENTAL
|
||||
Warning: this feature is early code and is marked as experimental. It can only
|
||||
be enabled by explicitly telling configure with \fB--enable-alt-svc\fP. You are
|
||||
advised to not ship this in production before the experimental label is
|
||||
removed.
|
||||
.SH DESCRIPTION
|
||||
Pass in a pointer to a \fIfilename\fP to instruct libcurl to use that file as
|
||||
the Alt-Svc cache to read existing cache contents from and possibly also write
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@ CURLOPT_ALTSVC_CTRL \- control alt-svc behavior
|
|||
.nf
|
||||
#include <curl/curl.h>
|
||||
|
||||
#define CURLALTSVC_IMMEDIATELY (1<<0)
|
||||
#define CURLALTSVC_READONLYFILE (1<<2)
|
||||
#define CURLALTSVC_H1 (1<<3)
|
||||
#define CURLALTSVC_H2 (1<<4)
|
||||
|
|
@ -35,11 +34,6 @@ CURLOPT_ALTSVC_CTRL \- control alt-svc behavior
|
|||
|
||||
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_ALTSVC_CTRL, long bitmask);
|
||||
.fi
|
||||
.SH EXPERIMENTAL
|
||||
Warning: this feature is early code and is marked as experimental. It can only
|
||||
be enabled by explicitly telling configure with \fB--enable-alt-svc\fP. You are
|
||||
advised to not ship this in production before the experimental label is
|
||||
removed.
|
||||
.SH DESCRIPTION
|
||||
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.
|
||||
|
|
@ -50,10 +44,6 @@ origin is properly hosted over HTTPS. These requirements are there to make
|
|||
sure both the source and the destination are legitimate.
|
||||
|
||||
Setting any bit will enable the alt-svc engine.
|
||||
.IP "CURLALTSVC_IMMEDIATELY"
|
||||
If an Alt-Svc: header is received, this instructs libcurl to switch to one of
|
||||
those alternatives asap rather than to save it and use for the next
|
||||
request. (Not currently supported).
|
||||
.IP "CURLALTSVC_READONLYFILE"
|
||||
Do not write the alt-svc cache back to the file specified with
|
||||
\fICURLOPT_ALTSVC(3)\fP even if it gets updated. By default a file specified
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@
|
|||
CURLALTSVC_H1 7.64.1
|
||||
CURLALTSVC_H2 7.64.1
|
||||
CURLALTSVC_H3 7.64.1
|
||||
CURLALTSVC_IMMEDIATELY 7.64.1
|
||||
CURLALTSVC_READONLYFILE 7.64.1
|
||||
CURLAUTH_ANY 7.10.6
|
||||
CURLAUTH_ANYSAFE 7.10.6
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue