Class: Selenium::WebDriver::BiDi::InterceptedResponse
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
| Class Chain: 
          self,
           InterceptedItem | |
| Instance Chain: 
          self,
           InterceptedItem | |
| Inherits: | Selenium::WebDriver::BiDi::InterceptedItem 
 | 
| Defined in: | rb/lib/selenium/webdriver/bidi/network/intercepted_response.rb | 
Class Method Summary
Instance Attribute Summary
Instance Method Summary
- #continue
- #cookies(cookies = {})
- #cookies=(cookies = {})
- #credentials(username: nil, password: nil)
- #headers(headers = {})
- #headers=(*headers)
- #provide_response
InterceptedItem - Inherited
Constructor Details
    .new(network, request)  ⇒ InterceptedResponse 
  
# File 'rb/lib/selenium/webdriver/bidi/network/intercepted_response.rb', line 31
def initialize(network, request) super @reason = nil @status = nil @body = nil @headers = nil @cookies = nil end
Instance Attribute Details
#body (rw)
[ GitHub ]# File 'rb/lib/selenium/webdriver/bidi/network/intercepted_response.rb', line 29
attr_reader :body
#body=(value) (rw)
[ GitHub ]# File 'rb/lib/selenium/webdriver/bidi/network/intercepted_response.rb', line 86
def body=(value) @body = { type: 'string', value: value.to_json } end
#reason (rw)
[ GitHub ]# File 'rb/lib/selenium/webdriver/bidi/network/intercepted_response.rb', line 28
attr_accessor :reason, :status
#status (rw)
[ GitHub ]# File 'rb/lib/selenium/webdriver/bidi/network/intercepted_response.rb', line 28
attr_accessor :reason, :status
Instance Method Details
#continue
[ GitHub ]# File 'rb/lib/selenium/webdriver/bidi/network/intercepted_response.rb', line 40
def continue = @cookies&.as_json headers = @headers&.as_json network.continue_response( id: id, cookies: , headers: headers, credentials: credentials.as_json, reason: reason, status: status ) end
#cookies(cookies = {})
[ GitHub ]#cookies=(cookies = {})
[ GitHub ]#credentials(username: nil, password: nil)
[ GitHub ]# File 'rb/lib/selenium/webdriver/bidi/network/intercepted_response.rb', line 66
def credentials(username: nil, password: nil) @credentials ||= Credentials.new(username: username, password: password) end