We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c159fee commit 3126da0Copy full SHA for 3126da0
http_client.rst
@@ -1264,7 +1264,8 @@ Symfony's HTTP client provides an EventSource implementation to consume these
1264
server-sent events. Use the :class:`Symfony\\Component\\HttpClient\\EventSourceHttpClient`
1265
to wrap your HTTP client, open a connection to a server that responds with a
1266
``text/event-stream`` content type and consume the stream as follows::
1267
-
+
1268
+ use Symfony\Component\HttpClient\Chunk\ServerSentEvent;
1269
use Symfony\Component\HttpClient\EventSourceHttpClient;
1270
1271
// the second optional argument is the reconnection time in seconds (default = 10)
0 commit comments