Name
hurl.Share -- create a shared object
Synopsis
handle = hurl.Share([table])
Function
This function returns a curl share handle to be used as input to all the other share-functions, sometimes referred to as a share handle in some places in the documentation. This init call must have a corresponding call to share:Close() when all operations using the share are complete.

This share handle is what you pass to curl using the #CURLOPT_SHARE option with easy:SetOpt() to make that specific curl handle use the data in this share.

The optional table argument allows you to get additional options for the share object. It is possible to use all options here that can also be get separately using the share:SetOpt() command. See hurl:Easy for an example.

Inputs
table
optional: table argument containing further options
Results
handle
curl share handle

Show TOC