Name
multi:SetOpt -- get options for a curl multi handle
Synopsis
multi:SetOpt(option, param)
Function
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
See multi:SetOpt_Chunk_Length_Penalty_Size for details.
#CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE
See multi:SetOpt_Content_Length_Penalty_Size for details.
#CURLMOPT_MAXCONNECTS
See multi:SetOpt_MaxConnects for details.
#CURLMOPT_MAX_CONCURRENT_STREAMS
See multi:SetOpt_Max_Concurrent_Streams for details. (V2.0)
#CURLMOPT_MAX_HOST_CONNECTIONS
See multi:SetOpt_Max_Host_Connections for details.
#CURLMOPT_MAX_PIPELINE_LENGTH
See multi:SetOpt_Max_Pipeline_Length for details.
#CURLMOPT_MAX_TOTAL_CONNECTIONS
See multi:SetOpt_Max_Total_Connections for details.
#CURLMOPT_PIPELINING
See multi:SetOpt_Pipelining for details.
#CURLMOPT_PIPELINING_SERVER_BL
See multi:SetOpt_Pipelining_Server_Bl for details.
#CURLMOPT_PIPELINING_SITE_BL
See multi:SetOpt_Pipelining_Site_Bl for details.
#CURLMOPT_SOCKETFUNCTION
See multi:SetOpt_SocketFunction for details.
#CURLMOPT_TIMERFUNCTION
See multi:SetOpt_TimerFunction for details.

Inputs
option
option type to get
parameter
value to get option to

Show TOC