WPDev.one
Core Class

WP_HTTP_Proxy

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

Core class used to implement HTTP API proxy support.

Methods 9 methods

Method / Return Description
is_enabled()
bool

Whether proxy connection should be used.

use_authentication()
bool

Whether authentication should be used.

host()
string

Retrieve the host for the proxy server.

port()
string

Retrieve the port for the proxy server.

username()
string

Retrieve the username for proxy authentication.

password()
string

Retrieve the password for proxy authentication.

authentication()
string

Retrieve authentication string for proxy authentication.

authentication_header()
string

Retrieve header string for proxy authentication.

send_through_proxy()
bool

Determines whether the request should be sent through a proxy.

Parameters: $uri: mixed

Class Information

Since Version
2.8.0
Source File
wp-includes/class-wp-http-proxy.php
Advertisement