class Playwright::Response
‘Response` class represents responses which are received by page.
def all_headers
def all_headers wrap_impl(@impl.all_headers) end
def body
def body wrap_impl(@impl.body) end
def event_emitter_proxy
def event_emitter_proxy _emitter_proxy ||= EventEmitterProxy.new(self, @impl)
def finished
def finished wrap_impl(@impl.finished) end
def frame
def frame wrap_impl(@impl.frame) end
def from_service_worker
def from_service_worker wrap_impl(@impl.from_service_worker) end
def from_service_worker?
def from_service_worker? wrap_impl(@impl.from_service_worker?) end
def header_value(name)
Returns the value of the header matching the name. The name is case insensitive. If multiple headers have
def header_value(name) wrap_impl(@impl.header_value(unwrap_impl(name))) end
def header_values(name)
def header_values(name) wrap_impl(@impl.header_values(unwrap_impl(name))) end
def headers
Note that this method does not return security-related headers, including cookie-related ones.
An object with the response HTTP headers. The header names are lower-cased.
def headers wrap_impl(@impl.headers) end
def headers_array
An array with all the request HTTP headers associated with this response. Unlike [`method: Response.allHeaders`], header names are NOT lower-cased.
def headers_array wrap_impl(@impl.headers_array) end
def json
Returns the JSON representation of response body.
def json wrap_impl(@impl.json) end
def off(event, callback)
-- inherited from EventEmitter --
def off(event, callback) event_emitter_proxy.off(event, callback) end
def ok
def ok wrap_impl(@impl.ok) end
def ok?
def ok? wrap_impl(@impl.ok?) end
def on(event, callback)
-- inherited from EventEmitter --
def on(event, callback) event_emitter_proxy.on(event, callback) end
def once(event, callback)
-- inherited from EventEmitter --
def once(event, callback) event_emitter_proxy.once(event, callback) end
def request
def request wrap_impl(@impl.request) end
def security_details
def security_details wrap_impl(@impl.security_details) end
def server_addr
def server_addr wrap_impl(@impl.server_addr) end
def status
def status wrap_impl(@impl.status) end
def status_text
def status_text wrap_impl(@impl.status_text) end
def text
def text wrap_impl(@impl.text) end
def url
def url wrap_impl(@impl.url) end