Class: Selenium::WebDriver::BiDi::InterceptedRequest
- Inherits:
 - 
      InterceptedItem
      
        
- Object
 - InterceptedItem
 - Selenium::WebDriver::BiDi::InterceptedRequest
 
 
- Defined in:
 - lib/selenium/webdriver/bidi/network/intercepted_request.rb
 
Instance Attribute Summary collapse
- 
  
    
      #body  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute body.
 - 
  
    
      #method  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute method.
 - 
  
    
      #url  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute url.
 
Attributes inherited from InterceptedItem
Instance Method Summary collapse
- #continue ⇒ Object
 - #cookies(cookies = {}) ⇒ Object
 - #cookies=(cookies = {}) ⇒ Object
 - #fail ⇒ Object
 - #headers(headers = {}) ⇒ Object
 - #headers=(headers = {}) ⇒ Object
 - 
  
    
      #initialize(network, request)  ⇒ InterceptedRequest 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of InterceptedRequest.
 
Methods inherited from InterceptedItem
Constructor Details
#initialize(network, request) ⇒ InterceptedRequest
Returns a new instance of InterceptedRequest.
      30 31 32 33 34 35 36 37  | 
    
      # File 'lib/selenium/webdriver/bidi/network/intercepted_request.rb', line 30 def initialize(network, request) super @method = nil @url = nil @body = nil @headers = nil @cookies = nil end  | 
  
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
      28 29 30  | 
    
      # File 'lib/selenium/webdriver/bidi/network/intercepted_request.rb', line 28 def body @body end  | 
  
#method ⇒ Object
Returns the value of attribute method.
      27 28 29  | 
    
      # File 'lib/selenium/webdriver/bidi/network/intercepted_request.rb', line 27 def method @method end  | 
  
#url ⇒ Object
Returns the value of attribute url.
      27 28 29  | 
    
      # File 'lib/selenium/webdriver/bidi/network/intercepted_request.rb', line 27 def url @url end  | 
  
Instance Method Details
#continue ⇒ Object
      39 40 41 42 43 44 45 46 47 48 49 50  | 
    
      # File 'lib/selenium/webdriver/bidi/network/intercepted_request.rb', line 39 def continue = @cookies&.as_json headers = @headers&.as_json network.continue_request( id: id, body: body, cookies: , headers: headers, method: method, url: url ) end  | 
  
#cookies(cookies = {}) ⇒ Object
      71 72 73  | 
    
      # File 'lib/selenium/webdriver/bidi/network/intercepted_request.rb', line 71 def ( = {}) @cookies ||= Cookies.new() end  | 
  
#cookies=(cookies = {}) ⇒ Object
      75 76 77  | 
    
      # File 'lib/selenium/webdriver/bidi/network/intercepted_request.rb', line 75 def ( = {}) @cookies = Cookies.new() end  | 
  
#fail ⇒ Object
      52 53 54  | 
    
      # File 'lib/selenium/webdriver/bidi/network/intercepted_request.rb', line 52 def fail network.fail_request(id) end  |