[ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
HTTP API: WP_HTTP_Proxy class
File Size: | 226 lines (6 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
WP_HTTP_Proxy:: (9 methods):
is_enabled()
use_authentication()
host()
port()
username()
password()
authentication()
authentication_header()
send_through_proxy()
Class: WP_HTTP_Proxy - X-Ref
Core class used to implement HTTP API proxy support.is_enabled() X-Ref |
Whether proxy connection should be used. Constants which control this behaviour: - `WP_PROXY_HOST` - `WP_PROXY_PORT` return: bool since: 2.8.0 |
use_authentication() X-Ref |
Whether authentication should be used. Constants which control this behaviour: - `WP_PROXY_USERNAME` - `WP_PROXY_PASSWORD` return: bool since: 2.8.0 |
host() X-Ref |
Retrieve the host for the proxy server. return: string since: 2.8.0 |
port() X-Ref |
Retrieve the port for the proxy server. return: string since: 2.8.0 |
username() X-Ref |
Retrieve the username for proxy authentication. return: string since: 2.8.0 |
password() X-Ref |
Retrieve the password for proxy authentication. return: string since: 2.8.0 |
authentication() X-Ref |
Retrieve authentication string for proxy authentication. return: string since: 2.8.0 |
authentication_header() X-Ref |
Retrieve header string for proxy authentication. return: string since: 2.8.0 |
send_through_proxy( $uri ) X-Ref |
Determines whether the request should be sent through a proxy. We want to keep localhost and the site URL from being sent through the proxy, because some proxies can not handle this. We also have the constant available for defining other hosts that won't be sent through the proxy. param: string $uri URL of the request. return: bool Whether to send the request through the proxy. since: 2.8.0 |
Generated: Sun Dec 22 01:00:02 2024 | Cross-referenced by PHPXref 0.7.1 |