Sets the target URL.
public __construct ( SimpleUrl $url ) | ||
$url | SimpleUrl | URL as object. |
/** * Stashes the proxy address. * @param SimpleUrl $url URL as object. * @param string $proxy Proxy URL. * @param string $username Username for autentication. * @param string $password Password for autentication. * @access public */ function __construct($url, $proxy, $username = false, $password = false) { parent::__construct($url); $this->proxy = $proxy; $this->username = $username; $this->password = $password; }
/** * @see SimpleRoute::__construct() * @param string $uri The URI pattern * @param string|callable $action The action to dispatch the request to * @param string $method The HTTP method * @param string[string] $headers Any HTTP headers to match * @param array[string] $defaults Default parameter values * @throws \InvalidArgumentException If $uri or $method is empty or non-string */ public function __construct($uri, $action, $method = null, array $headers = [], array $defaults = []) { $this->defaults = $defaults; parent::__construct($uri, $action, $method, $headers); }