Skip to content

Commit 8be844c

Browse files
authored
Add a warning about missing headers on the request
1 parent c9f46eb commit 8be844c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

clients/socket-client.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,10 @@ use case would be::
6363
];
6464
$client = new Client($messageFactory, $options);
6565

66+
.. warning::
67+
68+
This client assume that the request is compliant with HTTP 2.0, 1.1 or 1.0 standard. So a request without a ``Host`` header, or
69+
with a body but wihout a ``Content-Length`` will certainly fail. You can make sure that requests used by this client are valid, by
70+
decorating it with :doc:`plugins </plugins/introduction>` like ``ContentLengthPlugin`` or ``HeaderDefaultsPlugin``.
71+
6672
.. include:: includes/further-reading-sync.inc

0 commit comments

Comments
 (0)