@@ -64,7 +64,7 @@ At the moment, the only options supported are:
64
64
65
65
### Exception Handling
66
66
67
- A call to ` fetch ` can throw two exceptions, which are property documented.
67
+ A call to ` fetch ` can throw two exceptions, which are properly documented.
68
68
69
69
A ` MNC\Http\SocketError ` is thrown when a TCP connection cannot be established
70
70
with the server. Common scenarios where this may happen include:
@@ -74,9 +74,9 @@ with the server. Common scenarios where this may happen include:
74
74
- The server took too long to produce a response (timeout)
75
75
- The SSL handshake failed (non trusted certificate)
76
76
77
- A ` MNC\Http\ProtocolError ` occurs when a connection could be established, and the
78
- a response was produced by the server, but this response was an error according
79
- to the HTTP protocol specification (a status code in the 400 or 500 range). This exception
77
+ A ` MNC\Http\ProtocolError ` occurs when a connection could be established, and a
78
+ response was produced by the server, but this response was an error according to
79
+ the HTTP protocol specification (a status code in the 400 or 500 range). This exception
80
80
contains the ` MNC\Http\Response ` object that the server produced.
81
81
82
82
The distinction between these two kind of errors is really important since
@@ -186,7 +186,7 @@ $lastModified = $stdHeaders->getLastModified()->diff(new DateTimeImmutable(), tr
186
186
echo sprintf('This html content was last modified %s hours ago...', $lastModified) . PHP_EOL;
187
187
```
188
188
189
- You can use these headers information to handle chaching or avoiding reading the whole
189
+ You can use these headers information to handle caching or avoiding reading the whole
190
190
stream body if is not necessary.
191
191
192
192
Since these standards headers may not be present in a certain responses, they
@@ -434,4 +434,4 @@ This client is simple, small, functional, immutable, type-safe, well designed an
434
434
good balance between protocol strictness and convenience. I think there is nothing like that
435
435
in the PHP ecosystem right now, so there might be a user base for this.
436
436
437
- Hope you enjoy using it as much as I enjoyed building it.
437
+ Hope you enjoy using it as much as I enjoyed building it.
0 commit comments