Skip to content

Commit 6ea6581

Browse files
committed
[http-client] Cosmetic fixes to README and tests
1 parent 8e7896f commit 6ea6581

File tree

3 files changed

+80
-159
lines changed

3 files changed

+80
-159
lines changed

src/React/HttpClient/README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ it. Response implements ReadableStreamInterface.
1313

1414
Interesting events emitted by Request:
1515

16-
* response: the response headers were received from the server and successfully
16+
* `response`: The response headers were received from the server and successfully
1717
parsed. The first argument is a Response instance.
18-
* error: an error occured
19-
* end: the request is finished. If an error occured, it is passed as first
18+
* `error`: An error occured.
19+
* `end`: The request is finished. If an error occured, it is passed as first
2020
argument. Second and third arguments are the Response and the Request.
2121

2222
Interesting events emitted by Response:
2323

24-
* data: passes a chunk of the response body as first argument * error:
25-
an error occured
26-
* end: the response has been fully received. If an error
24+
* `data`: Passes a chunk of the response body as first argument
25+
* `error`: An error occured.
26+
* `end`: The response has been fully received. If an error
2727
occured, it is passed as first argument
2828

2929
### Example
@@ -54,4 +54,3 @@ $request->end();
5454
* chunked transfer encoding
5555
* keep-alive connections
5656
* following redirections
57-

0 commit comments

Comments
 (0)