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
- #fail ⇒ Object
- #headers ⇒ Object
-
#initialize(network, request) ⇒ InterceptedRequest
constructor
A new instance of InterceptedRequest.
Methods inherited from InterceptedItem
Constructor Details
permalink #initialize(network, request) ⇒ InterceptedRequest
Returns a new instance of InterceptedRequest.
30 31 32 33 34 35 |
# File 'lib/selenium/webdriver/bidi/network/intercepted_request.rb', line 30 def initialize(network, request) super @method = nil @url = nil @body = nil end |
Instance Attribute Details
permalink #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 |
permalink #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 |
permalink #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
permalink #continue ⇒ Object
[View source]
37 38 39 40 41 42 43 44 45 46 |
# File 'lib/selenium/webdriver/bidi/network/intercepted_request.rb', line 37 def continue network.continue_request( id: id, body: body, cookies: .as_json, headers: headers.as_json, method: method, url: url ) end |
permalink #cookies(cookies = {}) ⇒ Object
[View source]
63 64 65 |
# File 'lib/selenium/webdriver/bidi/network/intercepted_request.rb', line 63 def ( = {}) @cookies ||= Cookies.new() end |
permalink #fail ⇒ Object
[View source]
48 49 50 |
# File 'lib/selenium/webdriver/bidi/network/intercepted_request.rb', line 48 def fail network.fail_request(id) end |
permalink #headers ⇒ Object
[View source]
59 60 61 |
# File 'lib/selenium/webdriver/bidi/network/intercepted_request.rb', line 59 def headers @headers ||= Headers.new end |