Skip to content

libcURL.cURLSession.Constructor

Andrew Lambert edited this page Jan 12, 2023 · 3 revisions

libcURL.cURLSession.Constructor

Method Signatures

 Sub Constructor()
 Sub Constructor(ExistingEasy As libcURL.EasyHandle) 

Parameters

Constructor()

Passing no parameters will create a brand-new instance with default values.

Constructor(ExistingEasy As libcURL.EasyHandle)

Name Type Comment
ExistingEasy EasyHandle An instance of EasyHandle to be used directly (i.e. not duplicated)

Remarks

Creates a new instance of a cURLSession. If libcURL is not available at runtime, a PlatformNotSupportedException will be raised.

If you pass an instance of EasyHandle then the new instance will take ownership of the EasyHandle and use it to conduct transfers. The EasyHandle will be reset before being used. To use a specific instance of EasyHandle without resetting its options, assign the instance to the EasyHandle property.

Clone this wiki locally