class Selenium::WebDriver::DevTools::Response
def self.from(id, encoded_body, params)
def self.from(id, encoded_body, params) new( id: id, code: params['responseStatusCode'], body: (Base64.strict_decode64(encoded_body) if encoded_body), headers: params.fetch('responseHeaders', []).each_with_object({}) do |header, hash| hash[header['name']] = header['value'] end ) end
def ==(other)
def ==(other) self.class == other.class && id == other.id && code == other.code && body == other.body && headers == other.headers end
def initialize(id:, code:, body:, headers:)
def initialize(id:, code:, body:, headers:) @id = id @code = code @body = body @headers = headers end
def inspect
def inspect %(#<#{self.class.name} @id="#{id}" @code="#{code}") end