메소드 | 설명 | |
---|---|---|
__construct ( SimpleRoute $route, SimpleFormEncoding $encoding ) | Builds the socket request from the different pieces. | |
addHeaderLine ( string $header_line ) | Adds a header line to the request. | |
fetch ( integer $timeout ) : SimpleHttpResponse | Dispatches the content to the route's socket. | |
getHeaders ( ) : array | Get the headers to be sent with the request. | |
readCookiesFromJar ( SimpleCookieJar $jar, SimpleUrl $url ) | Reads all the relevant cookies from the cookie jar. |
메소드 | 설명 | |
---|---|---|
createResponse ( SimpleSocket $socket ) : SimpleHttpResponse | Wraps the socket in a response parser. | |
dispatchRequest ( SimpleSocket $socket, SimpleFormEncoding $encoding ) | Sends the headers. |
public __construct ( SimpleRoute $route, SimpleFormEncoding $encoding ) | ||
$route | SimpleRoute | Request route. |
$encoding | SimpleFormEncoding | Content to send with request. |
public addHeaderLine ( string $header_line ) | ||
$header_line | string |
protected createResponse ( SimpleSocket $socket ) : SimpleHttpResponse | ||
$socket | SimpleSocket | Responding socket. |
리턴 | SimpleHttpResponse | Parsed response object. |
protected dispatchRequest ( SimpleSocket $socket, SimpleFormEncoding $encoding ) | ||
$socket | SimpleSocket | Open socket. |
$encoding | SimpleFormEncoding | Content to send with request. |
public getHeaders ( ) : array | ||
리턴 | array |
public readCookiesFromJar ( SimpleCookieJar $jar, SimpleUrl $url ) | ||
$jar | SimpleCookieJar | Jar to read |
$url | SimpleUrl | Url to use for scope. |