V
Size: a a a
V
VY
GuzzleHttp\Psr7\Response {#1547
-reasonPhrase: "OK"
-statusCode: 200
-headers: array:9 [
"Server" => array:1 [
0 => "nginx/1.12.2"
]
"Date" => array:1 [
0 => "Wed, 06 May 2020 07:59:00 GMT"
] .....
........
dump($result->reasonPhrase);
dump(json_decode($result)['reasonPhrase']);
VY
ДК
GuzzleHttp\Psr7\Response {#1547
-reasonPhrase: "OK"
-statusCode: 200
-headers: array:9 [
"Server" => array:1 [
0 => "nginx/1.12.2"
]
"Date" => array:1 [
0 => "Wed, 06 May 2020 07:59:00 GMT"
] .....
........
dump($result->reasonPhrase);
dump(json_decode($result)['reasonPhrase']);
V
V
VY
ДК
GuzzleHttp\Psr7\Response {#1547
-reasonPhrase: "OK"
-statusCode: 200
-headers: array:9 [
"Server" => array:1 [
0 => "nginx/1.12.2"
]
"Date" => array:1 [
0 => "Wed, 06 May 2020 07:59:00 GMT"
] .....
........
dump($result->reasonPhrase);
dump(json_decode($result)['reasonPhrase']);
VY
ЕК
AP
GuzzleHttp\Psr7\Response {#1547
-reasonPhrase: "OK"
-statusCode: 200
-headers: array:9 [
"Server" => array:1 [
0 => "nginx/1.12.2"
]
"Date" => array:1 [
0 => "Wed, 06 May 2020 07:59:00 GMT"
] .....
........
dump($result->reasonPhrase);
dump(json_decode($result)['reasonPhrase']);
k
GuzzleHttp\Psr7\Response {#1547
-reasonPhrase: "OK"
-statusCode: 200
-headers: array:9 [
"Server" => array:1 [
0 => "nginx/1.12.2"
]
"Date" => array:1 [
0 => "Wed, 06 May 2020 07:59:00 GMT"
] .....
........
dump($result->reasonPhrase);
dump(json_decode($result)['reasonPhrase']);
$response = GuzzleHttp\get('http://httpbin.org/get');
echo $response->getStatusCode();
// 200
echo $response->getReasonPhrase();
// OK
echo $response->getProtocolVersion();
// 1.1
AP
ЕК
$resp = Http::withHeaders($this->getAuthHeader())
->get($url);
$resp->toPsrResponse()->getReasonPhrase();
ДК
ЕК
VY
AP
SP
SP