mirror of
https://github.com/curl/curl.git
synced 2024-12-27 06:59:43 +08:00
5b060a4108
... instead of using future tense. + numerous cleanups and improvements + stick to "reuse" not "re-use" + fewer contractions Closes #11713
72 lines
2.7 KiB
Groff
72 lines
2.7 KiB
Groff
.\" **************************************************************************
|
|
.\" * _ _ ____ _
|
|
.\" * Project ___| | | | _ \| |
|
|
.\" * / __| | | | |_) | |
|
|
.\" * | (__| |_| | _ <| |___
|
|
.\" * \___|\___/|_| \_\_____|
|
|
.\" *
|
|
.\" * Copyright (C) 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
|
|
.\" * are also available at https://curl.se/docs/copyright.html.
|
|
.\" *
|
|
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
.\" * copies of the Software, and permit persons to whom the Software is
|
|
.\" * furnished to do so, under the terms of the COPYING file.
|
|
.\" *
|
|
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
.\" * KIND, either express or implied.
|
|
.\" *
|
|
.\" * SPDX-License-Identifier: curl
|
|
.\" *
|
|
.\" **************************************************************************
|
|
.\"
|
|
.TH CURLMOPT_PIPELINING 3 "17 Jun 2014" libcurl libcurl
|
|
.SH NAME
|
|
CURLMOPT_PIPELINING \- enable HTTP pipelining and multiplexing
|
|
.SH SYNOPSIS
|
|
.nf
|
|
#include <curl/curl.h>
|
|
|
|
CURLMcode curl_multi_setopt(CURLM *handle, CURLMOPT_PIPELINING, long bitmask);
|
|
.fi
|
|
.SH DESCRIPTION
|
|
Pass in the correct value in the \fBbitmask\fP parameter to instruct libcurl
|
|
to enable multiplexing for this multi handle.
|
|
|
|
With multiplexing enabled, libcurl attempts to do multiple transfers over the
|
|
same connection when doing parallel transfers to the same hosts.
|
|
|
|
.IP CURLPIPE_NOTHING (0)
|
|
Default, which means doing no attempts at multiplexing.
|
|
.IP CURLPIPE_HTTP1 (1)
|
|
This bit is deprecated and has no effect since version 7.62.0.
|
|
.IP CURLPIPE_MULTIPLEX (2)
|
|
If this bit is set, libcurl tries to multiplex the new transfer over an
|
|
existing connection if possible. This requires HTTP/2 or HTTP/3.
|
|
.SH DEFAULT
|
|
Since 7.62.0, \fBCURLPIPE_MULTIPLEX\fP is enabled by default.
|
|
|
|
Before that, default was \fBCURLPIPE_NOTHING\fP.
|
|
.SH PROTOCOLS
|
|
HTTP(S)
|
|
.SH EXAMPLE
|
|
.nf
|
|
CURLM *m = curl_multi_init();
|
|
/* try HTTP/2 multiplexing */
|
|
curl_multi_setopt(m, CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX);
|
|
.fi
|
|
.SH AVAILABILITY
|
|
Added in 7.16.0. Multiplex support bit added in 7.43.0. HTTP/1 Pipelining
|
|
support was disabled in 7.62.0.
|
|
.SH RETURN VALUE
|
|
Returns CURLM_OK if the option is supported, and CURLM_UNKNOWN_OPTION if not.
|
|
.SH "SEE ALSO"
|
|
.BR CURLMOPT_MAX_PIPELINE_LENGTH "(3), "
|
|
.BR CURLMOPT_PIPELINING_SITE_BL "(3), "
|
|
.BR CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE "(3), "
|
|
.BR CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE "(3), "
|
|
.BR CURLMOPT_MAXCONNECTS "(3), "
|
|
.BR CURLMOPT_MAX_HOST_CONNECTIONS "(3), "
|