Class: Selenium::WebDriver::BiDi::InterceptedRequest Private
Do not use. This class is for internal use only.
| 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_request.rb |
Class Method Summary
- .new(network, request) ⇒ InterceptedRequest constructor Internal use only
InterceptedItem - Inherited
Instance Attribute Summary
- #body rw Internal use only
- #body=(value) rw Internal use only
- #method rw Internal use only
- #url rw Internal use only
InterceptedItem - Inherited
Instance Method Summary
- #continue Internal use only
- #cookies(cookies = {}) Internal use only
- #cookies=(cookies = {}) Internal use only
- #fail Internal use only
- #headers(headers = {}) Internal use only
- #headers=(headers = {}) Internal use only
InterceptedItem - Inherited
Constructor Details
.new(network, request) ⇒ InterceptedRequest
# File 'rb/lib/selenium/webdriver/bidi/network/intercepted_request.rb', line 34
def initialize(network, request) super @method = nil @url = nil @body = nil @headers = nil @cookies = nil end
Instance Attribute Details
#body (rw)
[ GitHub ]# File 'rb/lib/selenium/webdriver/bidi/network/intercepted_request.rb', line 32
attr_reader :body
#body=(value) (rw)
[ GitHub ]# File 'rb/lib/selenium/webdriver/bidi/network/intercepted_request.rb', line 60
def body=(value) @body = { type: 'string', value: value.to_json } end
#method (rw)
[ GitHub ]# File 'rb/lib/selenium/webdriver/bidi/network/intercepted_request.rb', line 31
attr_accessor :method, :url
#url (rw)
[ GitHub ]# File 'rb/lib/selenium/webdriver/bidi/network/intercepted_request.rb', line 31
attr_accessor :method, :url
Instance Method Details
#continue
[ GitHub ]#cookies(cookies = {})
[ GitHub ]#cookies=(cookies = {})
[ GitHub ]#fail
[ GitHub ]# File 'rb/lib/selenium/webdriver/bidi/network/intercepted_request.rb', line 56
def fail network.fail_request(id) end