Skip to content

Commit c295662

Browse files
silverbackdanjaviereguiluz
authored andcommitted
[HttpClient] Clarification on use of base_uri + absolute paths
1 parent 1c090ab commit c295662

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

http_client.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,10 @@ If you use for example
333333
as the type and name of an argument, autowiring will inject the ``my_api.client``
334334
service into your autowired classes.
335335

336+
.. note::
337+
338+
Pay attention to the trailing slashes in the `base_uri` parameter and prefixed slashes in your path when making a request. The URI will be merged following the rules explained in the [RFC 3986](https://www.ietf.org/rfc/rfc3986.txt) standard. [You can view some examples here](https://symfony.com/doc/current/reference/configuration/framework.html#base-uri)
339+
336340
Making Requests
337341
---------------
338342

0 commit comments

Comments
 (0)