We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d505f17 commit 79242e4Copy full SHA for 79242e4
1 file changed
pytest_httpserver/httpserver.py
@@ -654,6 +654,11 @@ def url_for(self, suffix: str):
654
This basically means that it prepends the string ``http://$HOST:$PORT/`` to the `suffix` parameter
655
(where $HOST and $PORT are the parameters given to the constructor).
656
657
+ When host is an IPv6 address, the required square brackets will be added
658
+ to it, forming a valid URL.
659
+
660
+ When SSL or TLS is in use, the protocol of the returned URL will be ``https``.
661
662
:param suffix: the suffix which will be added to the base url. It can start with ``/`` (slash) or
663
not, the url will be the same.
664
:return: the full url which refers to the server
0 commit comments