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 this
validation: if a request's fields contain characters prohibited by
the HTTP specifications (such as CR or LF), the request MUST be
rejected.
"""

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