Skip to main content

_HttpxResponse

Adapter class for httpx.Response to conform to the HttpResponse protocol.

Index

Methods

__init__

  • __init__(*, response): None
  • Parameters

    • optionalkeyword-onlyresponse: httpx.Response

    Returns None

read

  • read(): bytes
  • Returns bytes

Properties

headers

headers: HttpHeaders

http_version

http_version: str

status_code

status_code: int