Метод | Описание | |
---|---|---|
__construct ( ) | Initialize the request and response. | |
getBody ( ) : string | Get response body. | |
getHeaders ( ) : array | Get all response headers. | |
getStatusCode ( ) : string | Get response status code. | |
getStatusMessage ( ) : string | Get response status message. | |
send ( ) | Send the request. | |
setBody ( string $body ) | Set request body. | |
setHeader ( string $header, $value ) | Set request header. | |
setHost ( string $host ) | Set request host. | |
setMethod ( string $method ) | Set request method. | |
setResource ( string $resource ) | Set request resource url. |
Метод | Описание | |
---|---|---|
getRequest ( ) : Buzz\Message\Request | Get request. | |
getResponse ( ) : Buzz\Message\Response | Get reponse. | |
unFormatHeaders ( array $headers ) : array | Converts the buzz headers attributes into single lines. |
public getHeaders ( ) : array | ||
Результат | array | Associative array with $header => $value (value can be an array if it hasn't a single value) |
protected getRequest ( ) : Buzz\Message\Request | ||
Результат | Buzz\Message\Request |
protected getResponse ( ) : Buzz\Message\Response | ||
Результат | Buzz\Message\Response |
public getStatusCode ( ) : string | ||
Результат | string |
public getStatusMessage ( ) : string | ||
Результат | string |
public setResource ( string $resource ) | ||
$resource | string |
protected unFormatHeaders ( array $headers ) : array | ||
$headers | array | All headers |
Результат | array |