module

Playwright::Response

Response class represents responses which are received by page.

Instance methods

body

Returns the buffer with response body.

Source
finished

Waits for this response to finish, returns failure error if request failed.

Source
frame

Returns the Frame that initiated this response.

Source
headers

Returns the object with HTTP headers associated with the response. All header names are lower-case.

Source
ok

Contains a boolean stating whether the response was successful (status in the range 200-299) or not.

Source
request

Returns the matching Request object.

Source
status

Contains the status code of the response (e.g., 200 for a success).

Source
status_text

Contains the status text of the response (e.g. usually an "OK" for a success).

Source
text

Returns the text representation of response body.

Source
url

Contains the URL of the response.

Source