PHP 클래스 SimpleProxyRoute, simpletest

@package SimpleTest
상속: extends SimpleRoute
파일 보기 프로젝트 열기: simpletest/simpletest

공개 메소드들

메소드 설명
__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.