메소드 | 설명 | |
---|---|---|
__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. |
리턴 | SimpleSocket | New socket. |
public getHostLine ( ) : string | ||
리턴 | string | Host line content. |
public getRequestLine ( string $method ) : string | ||
$method | string | HTTP request method, usually GET. |
리턴 | string | Request line content. |