프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$body | string | ||
$client | Guzzle\Http\Client | ||
$headers | Associative array with 'header' => 'value' | ||
$host | string | ||
$method | string | ||
$request | Guzzle\Http\Message\Request | ||
$resource | string | ||
$response | Guzzle\Http\Message\Response | ||
$sent | boolean |
메소드 | 설명 | |
---|---|---|
__construct ( ) | Instanciate a client. | |
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. |
메소드 | 설명 | |
---|---|---|
getResponse ( ) : Guzzle\Http\Message\Response | Get reponse. |
public getHeaders ( ) : array | ||
리턴 | array | Associative array with $header => $value (value can be an array if it hasn't a single value) |
protected getResponse ( ) : Guzzle\Http\Message\Response | ||
리턴 | Guzzle\Http\Message\Response |
public getStatusMessage ( ) : string | ||
리턴 | string |
public setResource ( string $resource ) | ||
$resource | string |
protected Response,Guzzle\Http\Message $response | ||
리턴 | Guzzle\Http\Message\Response |