Skip to main content

PlaywrightHttpResponse

Wrapper class for playwright Response and APIResponse objects to implement HttpResponse protocol.

Index

Methods

from_playwright_response

  • async from_playwright_response(response, protocol): Self
  • Parameters

    • response: Response | APIResponse
    • protocol: str

    Returns Self

read

read_stream

  • async read_stream(): AsyncGenerator[bytes, None]
  • Returns AsyncGenerator[bytes, None]

Properties

headers

headers: HttpHeaders

http_version

http_version: str

status_code

status_code: int