Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,14 @@ def consume_body(self) -> bytes:


class HTTPClient(ClientTransport[HTTPRequest, HTTPResponse], Protocol):
"""An asynchronous HTTP client interface."""
"""An asynchronous HTTP client interface.

Header field names and values are not validated before reaching this
layer. Implementations of ``HTTPClient`` are responsible for
validating and handling those invalid and dangerous characters (such
as CR, LF, or NUL) as defined in `RFC 9110, Section 5.5
<https://www.rfc-editor.org/rfc/rfc9110#section-5.5>`_.
"""

def __init__(self, *, client_config: HTTPClientConfiguration | None) -> None:
"""
Expand Down
Loading