WPDev.one
Core Class

Curl

class Curl // Constructor: function Object() { [native code] }

cURL HTTP transport

Methods 12 methods

Method / Return Description
__construct()
void

Constructor

__destruct()
void

Destructor

request()
string

Perform a request

Parameters: $url: mixed, $headers: mixed, $data: mixed, $options: mixed
request_multiple()
array

Send multiple requests simultaneously

Parameters: $requests: mixed, $options: mixed
get_subrequest_handle()
(resource

Get the cURL handle for use in a multi-request

Parameters: $url: mixed, $headers: mixed, $data: mixed, $options: mixed
setup_handle()
void

Setup the cURL handle for the given data

Parameters: $url: mixed, $headers: mixed, $data: mixed, $options: mixed
process_response()
(string

Process a response

Parameters: $response: mixed, $options: mixed
stream_headers()
integer

Collect the headers as they are received

Parameters: $handle: mixed, $headers: mixed
stream_body()
integer

Collect data as it's received

Parameters: $handle: mixed, $data: mixed
format_get()
string

Format a URL given GET data

Parameters: $url: mixed, $data: mixed
test()
bool

Self-test whether the transport can be used.

Parameters: $capabilities: mixed
get_expect_header()
string

Get the correct "Expect" header for the given request data.

Parameters: $data: mixed

Properties

Property / Type Description
$headers
mixed
public
No description available.
$response_data
mixed
public
No description available.
$info
mixed
public
No description available.
$version
mixed
public
No description available.
$handle
mixed
public
No description available.
$hooks
mixed
public
No description available.
$done_headers
mixed
public
No description available.
$stream_handle
mixed
public
No description available.
$response_bytes
mixed
public
No description available.
$response_byte_limit
mixed
public
No description available.

Class Information

Source File
wp-includes/Requests/src/Transport/Curl.php
Advertisement