[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
HTTP API: WP_HTTP_Proxy class
File Size: | 227 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 behavior: - `WP_PROXY_HOST` - `WP_PROXY_PORT` return: bool |
use_authentication() X-Ref |
Whether authentication should be used. Constants which control this behavior: - `WP_PROXY_USERNAME` - `WP_PROXY_PASSWORD` return: bool |
host() X-Ref |
Retrieve the host for the proxy server. return: string |
port() X-Ref |
Retrieve the port for the proxy server. return: string |
username() X-Ref |
Retrieve the username for proxy authentication. return: string |
password() X-Ref |
Retrieve the password for proxy authentication. return: string |
authentication() X-Ref |
Retrieve authentication string for proxy authentication. return: string |
authentication_header() X-Ref |
Retrieve header string for proxy authentication. return: string |
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. return: bool Whether to send the request through the proxy. param: string $uri URL of the request. |
Generated : Sat Nov 23 08:20:01 2024 | Cross-referenced by PHPXref |