multi:SetOpt(option, param)
multi:SetOpt()
is used to tell a libcurl multi handle how to behave. By using the appropriate options to
multi:SetOpt()
, you can change libcurl's behaviour when using that multi handle. All options are get with
the option followed by the parameter param
. That parameter can be a number, a function, a string, or a table,
depending on what the specific option expects. Read this manual carefully as bad input values may cause libcurl
to behave badly! You can only get one option in each function call.
The following types are currently supported for option
:
#CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE
#CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE
#CURLMOPT_MAXCONNECTS
#CURLMOPT_MAX_CONCURRENT_STREAMS
#CURLMOPT_MAX_HOST_CONNECTIONS
#CURLMOPT_MAX_PIPELINE_LENGTH
#CURLMOPT_MAX_TOTAL_CONNECTIONS
#CURLMOPT_PIPELINING
#CURLMOPT_PIPELINING_SERVER_BL
#CURLMOPT_PIPELINING_SITE_BL
#CURLMOPT_SOCKETFUNCTION
#CURLMOPT_TIMERFUNCTION