Class: Selenium::WebDriver::BiDi::Headers

Inherits:
Hash
  • Object
show all
Defined in:
rb/lib/selenium/webdriver/bidi/network/headers.rb

Instance Method Summary collapse

Instance Method Details

#as_jsonObject



24
25
26
27
28
29
30
31
32
33
34
# File 'rb/lib/selenium/webdriver/bidi/network/headers.rb', line 24

def as_json
  map do |name, val|
    {
      name: name.to_s,
      value: {
        type: 'string',
        value: val.to_s
      }
    }
  end
end