Свойство | Тип | Описание | |
---|---|---|---|
$httpStatusCode | null | integer | HTTP status code for the response. | |
$requestUrl | string | Request URI that was used to send the hit. | |
$responseBody | string | Response body. |
Метод | Описание | |
---|---|---|
__construct ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface | GuzzleHttp\Promise\PromiseInterface $response ) | Gets the relevant data from the Guzzle clients. | |
getDebugResponse ( ) : array | Gets the debug response. Returns empty array if no response found. | |
getHttpStatusCode ( ) : null | integer | Gets the HTTP status code. | |
getRequestUrl ( ) : string | Gets the request URI used to get the response. |
public __construct ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface | GuzzleHttp\Promise\PromiseInterface $response ) | ||
$request | Psr\Http\Message\RequestInterface | |
$response | Psr\Http\Message\ResponseInterface | GuzzleHttp\Promise\PromiseInterface |
public getDebugResponse ( ) : array | ||
Результат | array |
public getHttpStatusCode ( ) : null | integer | ||
Результат | null | integer |
public getRequestUrl ( ) : string | ||
Результат | string |
protected string $requestUrl | ||
Результат | string |