module Playwright::Response
Overview
Response class represents responses which are received by page.
Defined in:
playwright/response.crInstance Method Summary
-
#body : Bytes
Returns the buffer with response body.
-
#finished : String | Nil
Waits for this response to finish, returns failure error if request failed.
-
#frame : Frame
Returns the Frame that initiated this response.
-
#headers : Hash(String, String)
Returns the object with HTTP headers associated with the response.
-
#ok : Bool
Contains a boolean stating whether the response was successful (status in the range 200-299) or not.
-
#request : Request
Returns the matching Request object.
-
#status : Int32
Contains the status code of the response (e.g., 200 for a success).
-
#status_text : String
Contains the status text of the response (e.g.
-
#text : String
Returns the text representation of response body.
-
#url : String
Contains the URL of the response.
Instance Method Detail
Waits for this response to finish, returns failure error if request failed.
Returns the object with HTTP headers associated with the response. All header names are lower-case.
Contains a boolean stating whether the response was successful (status in the range 200-299) or not.
Contains the status text of the response (e.g. usually an "OK" for a success).