PHP Класс SimpleProxyRoute, simpletest

@package SimpleTest
Наследование: extends SimpleRoute
Показать файл Открыть проект

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

Stashes the proxy address.
public __construct ( SimpleUrl $url, string $proxy, string $username = false, string $password = false )
$url SimpleUrl URL as object.
$proxy string Proxy URL.
$username string Username for autentication.
$password string Password for autentication.

createConnection() публичный Метод

Opens a socket to the route.
public createConnection ( string $method, integer $timeout ) : SimpleSocket
$method string HTTP request method, usually GET.
$timeout integer Connection timeout.
Результат SimpleSocket New socket.

getHostLine() публичный Метод

Creates the host part of the request.
public getHostLine ( ) : string
Результат string Host line content.

getRequestLine() публичный Метод

Creates the first line which is the actual request.
public getRequestLine ( string $method ) : string
$method string HTTP request method, usually GET.
Результат string Request line content.