Méthode | Description | |
---|---|---|
__construct ( SimpleUrl $url, string $proxy, string $username = false, string $password = false ) | Stashes the proxy address. | |
createConnection ( string $method, integer $timeout ) : SimpleSocket | Opens a socket to the route. | |
getHostLine ( ) : string | Creates the host part of the request. | |
getRequestLine ( string $method ) : string | Creates the first line which is the actual request. |
public createConnection ( string $method, integer $timeout ) : SimpleSocket | ||
$method | string | HTTP request method, usually GET. |
$timeout | integer | Connection timeout. |
Résultat | SimpleSocket | New socket. |
public getHostLine ( ) : string | ||
Résultat | string | Host line content. |
public getRequestLine ( string $method ) : string | ||
$method | string | HTTP request method, usually GET. |
Résultat | string | Request line content. |