WPDev.one
Core Class

Http

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

HTTP Proxy connection interface

Methods 7 methods

Method / Return Description
__construct()
void

Constructor

Parameters: $args: mixed
register()
void

Register the necessary callbacks

Parameters: $hooks: Hooks
curl_before_send()
void

Set cURL parameters before the data is sent

Parameters: $handle: mixed
fsockopen_remote_socket()
void

Alter remote socket information before opening socket connection

Parameters: $remote_socket: mixed
fsockopen_remote_host_path()
void

Alter remote path before getting stream data

Parameters: $path: mixed, $url: mixed
fsockopen_header()
void

Add extra headers to the request before sending

Parameters: $out: mixed
get_auth_string()
string

Get the authentication string (user:pass)

Properties

Property / Type Description
$proxy
mixed
public
No description available.
$user
mixed
public
No description available.
$pass
mixed
public
No description available.
$use_authentication
mixed
public
No description available.

Class Information

Since Version
1.6
Source File
wp-includes/Requests/src/Proxy/Http.php
Advertisement