File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ The `EchoClient` returns a JSON representation the original message:
86
86
``` php
87
87
$echoClient = new EchoClient($responseFactory);
88
88
89
- $request = $requestFactory->createRequest('GET', 'https://example.com');
89
+ $request = $requestFactory->createRequest('GET', 'https://example.com?whatever=value ');
90
90
$response = $echoClient->sendRequest($request);
91
91
$json = json_decode($response->getBody()->getContents());
92
92
```
@@ -95,15 +95,18 @@ Which yields an object similar to the following
95
95
96
96
``` json
97
97
{
98
+ "headers" : {
99
+ "Host" : " example.com"
100
+ },
98
101
"request" : {
99
- "url" : " https://example.com" ,
102
+ "url" : " https://example.com?whatever=value" ,
103
+ "params" : {
104
+ "whatever" : " value"
105
+ },
100
106
"method" : " GET" ,
101
107
"target" : " /" ,
102
108
"http" : " 1.1"
103
109
},
104
- "headers" : {
105
- "Host" : " example.com"
106
- },
107
110
"body" : " "
108
111
}
109
112
```
You can’t perform that action at this time.
0 commit comments