@@ -237,7 +237,7 @@ Advanced Options
237
237
238
238
The :class: `Symfony\\ Contracts\\ HttpClient\\ HttpClientInterface ` defines all the
239
239
options you might need to take full control of the way the request is performed,
240
- including progress monitoring, DSN pre-resolution, timeout, SSL parameters, etc.
240
+ including progress monitoring, DNS pre-resolution, timeout, SSL parameters, etc.
241
241
242
242
Processing Responses
243
243
--------------------
@@ -266,7 +266,7 @@ following methods::
266
266
.. note ::
267
267
268
268
``$response->getInfo() `` is non-blocking: it returns *live * information
269
- about the response. Some of them might not be know yet (e.g. ``http_code ``)
269
+ about the response. Some of them might not be known yet (e.g. ``http_code ``)
270
270
when you'll call it.
271
271
272
272
.. tip ::
@@ -358,7 +358,7 @@ But maybe the 2nd response came back before the 1st? Fully asynchronous operatio
358
358
require being able to deal with the responses in whatever order they come back.
359
359
360
360
In order to do so, the ``stream() `` method of HTTP clients accepts a list of
361
- responses to monitor. As mentionned :ref: `previously <http-client-streaming-responses >`,
361
+ responses to monitor. As mentioned :ref: `previously <http-client-streaming-responses >`,
362
362
this method yields response chunks as they arrive from the network. By replacing
363
363
the "foreach" in the snippet with this one, the code becomes fully async::
364
364
@@ -396,7 +396,7 @@ option::
396
396
397
397
The ``default_socket_timeout `` PHP ini setting is used if the option is not set.
398
398
399
- The option can be overriden by using the 2nd argument of the ``stream() `` method.
399
+ The option can be overridden by using the 2nd argument of the ``stream() `` method.
400
400
This allows monitoring several responses at once and applying the timeout to all
401
401
of them in a group. If all responses become inactive for the given duration, the
402
402
method will yield a special chunk whose ``isTimeout() `` will return ``true ``::
@@ -416,14 +416,14 @@ response and get remaining contents that might come back in a new timeout, etc.
416
416
417
417
.. note ::
418
418
419
- Timeouts control how long one is willing to wait *while the HTTP transation
419
+ Timeouts control how long one is willing to wait *while the HTTP transaction
420
420
is idle *. Big responses can last as long as needed to complete, provided they
421
421
remain active during the transfer and never pause for longer than specified.
422
422
423
423
Dealing with Network Errors
424
424
~~~~~~~~~~~~~~~~~~~~~~~~~~~
425
425
426
- Network errors (broken pipe, failed DSN resolution, etc.) are thrown as instances
426
+ Network errors (broken pipe, failed DNS resolution, etc.) are thrown as instances
427
427
of :class: `Symfony\\ Contracts\\ HttpClient\\ Exception\\ TransportExceptionInterface `.
428
428
429
429
First of all, you don't *have * to deal with them: letting errors bubble to your
@@ -618,7 +618,7 @@ into any services by type-hinting a constructor argument with the
618
618
}
619
619
620
620
If you have several clients, you must use any of the methods defined by Symfony
621
- to ref:`choose a specific service <services-wire-specific-service> `. Each client
621
+ to : ref: `choose a specific service <services-wire-specific-service >`. Each client
622
622
has a unique service named after its configuration.
623
623
624
624
Each scoped client also defines a corresponding named autowiring alias.
0 commit comments