Skip to content

Commit 571970a

Browse files
committed
:octocat:
1 parent 0986b2c commit 571970a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ The `EchoClient` returns a JSON representation the original message:
8686
```php
8787
$echoClient = new EchoClient($responseFactory);
8888

89-
$request = $requestFactory->createRequest('GET', 'https://example.com');
89+
$request = $requestFactory->createRequest('GET', 'https://example.com?whatever=value');
9090
$response = $echoClient->sendRequest($request);
9191
$json = json_decode($response->getBody()->getContents());
9292
```
@@ -95,15 +95,18 @@ Which yields an object similar to the following
9595

9696
```json
9797
{
98+
"headers": {
99+
"Host": "example.com"
100+
},
98101
"request": {
99-
"url": "https://example.com",
102+
"url": "https://example.com?whatever=value",
103+
"params" : {
104+
"whatever" : "value"
105+
},
100106
"method": "GET",
101107
"target": "/",
102108
"http": "1.1"
103109
},
104-
"headers": {
105-
"Host": "example.com"
106-
},
107110
"body": ""
108111
}
109112
```

0 commit comments

Comments
 (0)