WordPress at a glance
function is not described

Requests_Proxy_HTTP::__construct() public WP 1.6

Constructor

{} It's a method of the class: Requests_Proxy_HTTP{}

No Hooks.

Return

Null. Nothing.

Usage

$Requests_Proxy_HTTP = new Requests_Proxy_HTTP();
$Requests_Proxy_HTTP->__construct( $args );
$args(array/null)
Array of user and password. Must have exactly two elements
Default: null

Changelog

Since 1.6 Introduced.

Code of Requests_Proxy_HTTP::__construct() WP 5.5.1

<?php
public function __construct($args = null) {
	if (is_string($args)) {
		$this->proxy = $args;
	}
	elseif (is_array($args)) {
		if (count($args) == 1) {
			list($this->proxy) = $args;
		}
		elseif (count($args) == 3) {
			list($this->proxy, $this->user, $this->pass) = $args;
			$this->use_authentication = true;
		}
		else {
			throw new Requests_Exception('Invalid number of arguments', 'proxyhttpbadargs');
		}
	}
}