Title: wp-includes/class-wp-http-proxy.php | Developer.WordPress.org

---

# File: wp-includes/class-wp-http-proxy.php

 * hook[pre_http_send_through_proxy](https://developer.wordpress.org/reference/hooks/pre_http_send_through_proxy/)
 * Filters whether to preempt sending the request through the proxy.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/pre_http_send_through_proxy/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/pre_http_send_through_proxy/#uses)
   | Source: [wp-includes/class-wp-http-proxy.php:194](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-http-proxy.php#L194-L194)
 * method[WP_HTTP_Proxy::authentication_header()](https://developer.wordpress.org/reference/classes/wp_http_proxy/authentication_header/)
 * Retrieve header string for proxy authentication.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_http_proxy/authentication_header/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_http_proxy/authentication_header/#uses)
   | Source: [wp-includes/class-wp-http-proxy.php:155](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-http-proxy.php#L155-L157)
 * method[WP_HTTP_Proxy::send_through_proxy()](https://developer.wordpress.org/reference/classes/wp_http_proxy/send_through_proxy/)
 * Determines whether the request should be sent through a proxy.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_http_proxy/send_through_proxy/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/classes/wp_http_proxy/send_through_proxy/#uses)
   | Source: [wp-includes/class-wp-http-proxy.php:171](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-http-proxy.php#L171-L226)
 * class[WP_HTTP_Proxy](https://developer.wordpress.org/reference/classes/wp_http_proxy/)
 * Core class used to implement HTTP API proxy support.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_http_proxy/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_http_proxy/#uses)
   | Source: [wp-includes/class-wp-http-proxy.php:43](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-http-proxy.php#L43-L227)
 * method[WP_HTTP_Proxy::is_enabled()](https://developer.wordpress.org/reference/classes/wp_http_proxy/is_enabled/)
 * Whether proxy connection should be used.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_http_proxy/is_enabled/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_http_proxy/is_enabled/#uses)
   | Source: [wp-includes/class-wp-http-proxy.php:57](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-http-proxy.php#L57-L59)
 * method[WP_HTTP_Proxy::use_authentication()](https://developer.wordpress.org/reference/classes/wp_http_proxy/use_authentication/)
 * Whether authentication should be used.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_http_proxy/use_authentication/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_http_proxy/use_authentication/#uses)
   | Source: [wp-includes/class-wp-http-proxy.php:73](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-http-proxy.php#L73-L75)
 * method[WP_HTTP_Proxy::host()](https://developer.wordpress.org/reference/classes/wp_http_proxy/host/)
 * Retrieve the host for the proxy server.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_http_proxy/host/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_http_proxy/host/#uses)
   | Source: [wp-includes/class-wp-http-proxy.php:84](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-http-proxy.php#L84-L90)
 * method[WP_HTTP_Proxy::port()](https://developer.wordpress.org/reference/classes/wp_http_proxy/port/)
 * Retrieve the port for the proxy server.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_http_proxy/port/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_http_proxy/port/#uses)
   | Source: [wp-includes/class-wp-http-proxy.php:99](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-http-proxy.php#L99-L105)
 * method[WP_HTTP_Proxy::username()](https://developer.wordpress.org/reference/classes/wp_http_proxy/username/)
 * Retrieve the username for proxy authentication.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_http_proxy/username/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_http_proxy/username/#uses)
   | Source: [wp-includes/class-wp-http-proxy.php:114](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-http-proxy.php#L114-L120)
 * method[WP_HTTP_Proxy::password()](https://developer.wordpress.org/reference/classes/wp_http_proxy/password/)
 * Retrieve the password for proxy authentication.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_http_proxy/password/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_http_proxy/password/#uses)
   | Source: [wp-includes/class-wp-http-proxy.php:129](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-http-proxy.php#L129-L135)
 * method[WP_HTTP_Proxy::authentication()](https://developer.wordpress.org/reference/classes/wp_http_proxy/authentication/)
 * Retrieve authentication string for proxy authentication.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_http_proxy/authentication/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/classes/wp_http_proxy/authentication/#uses)
   | Source: [wp-includes/class-wp-http-proxy.php:144](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-http-proxy.php#L144-L146)