Class: Playwright::HttpHeaders

Inherits:
Object
  • Object
show all
Defined in:
lib/playwright/http_headers.rb

Instance Method Summary collapse

Constructor Details

#initialize(headers) ⇒ HttpHeaders

Returns a new instance of HttpHeaders.

Parameters:

  • headers (Hash)


4
5
6
# File 'lib/playwright/http_headers.rb', line 4

def initialize(headers)
  @headers = headers
end

Instance Method Details

#as_serializedObject



8
9
10
11
12
# File 'lib/playwright/http_headers.rb', line 8

def as_serialized
  @headers.map do |key, value|
    { name: key, value: value }
  end
end