class Selenium::WebDriver::BiDi::InterceptedResponse
Attributes
Public Class Methods
Source
# File lib/selenium/webdriver/bidi/network/intercepted_response.rb, line 31 def initialize(network, request) super @reason = nil @status = nil @body = nil end
Calls superclass method
Selenium::WebDriver::BiDi::InterceptedItem::new
Public Instance Methods
Source
# File lib/selenium/webdriver/bidi/network/intercepted_response.rb, line 72 def body=(value) @body = { type: 'string', value: value.to_json } end
Source
# File lib/selenium/webdriver/bidi/network/intercepted_response.rb, line 38 def continue network.continue_response( id: id, cookies: cookies.as_json, headers: headers.as_json, credentials: credentials.as_json, reason: reason, status: status ) end
Source
# File lib/selenium/webdriver/bidi/network/intercepted_response.rb, line 60 def credentials(username: nil, password: nil) @credentials ||= Credentials.new(username: username, password: password) end
Source
# File lib/selenium/webdriver/bidi/network/intercepted_response.rb, line 64 def headers @headers ||= Headers.new end
Source
# File lib/selenium/webdriver/bidi/network/intercepted_response.rb, line 49 def provide_response network.provide_response( id: id, cookies: cookies.as_json, headers: headers.as_json, body: body, reason: reason, status: status ) end