Requests_Transport_cURL::__destruct() WordPress Method
The Requests_Transport_cURL::__destruct() is a method of the Requests_Transport_cURL class. This class is used to send HTTP requests to a server via the cURL library. The __destruct() method is called when the class is destroyed, and it cleans up the cURL session. This ensures that resources are freed and connections are closed.
Requests_Transport_cURL::__destruct() #
Destructor
Contents
Source
File: wp-includes/Requests/Transport/cURL.php
public function __destruct() { if (is_resource($this->handle)) { curl_close($this->handle); } }
Expand full source codeCollapse full source codeView on TracView on GitHub