module Playwright::Response

Overview

Response class represents responses which are received by page.

Defined in:

playwright/response.cr

Instance Method Summary

Instance Method Detail

abstract def body : Bytes #

Returns the buffer with response body.


[View source]
abstract def finished : String? #

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


[View source]
abstract def frame : Frame #

Returns the Frame that initiated this response.


[View source]
abstract def headers : Hash(String, String) #

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


[View source]
abstract def ok : Bool #

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


[View source]
abstract def request : Request #

Returns the matching Request object.


[View source]
abstract def status : Int32 #

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


[View source]
abstract def status_text : String #

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


[View source]
abstract def text : String #

Returns the text representation of response body.


[View source]
abstract def url : String #

Contains the URL of the response.


[View source]