MCPcopy Index your code
hub / github.com/microsoft/playwright-python / headers_array

Method headers_array

playwright/sync_api/_generated.py:402–414  ·  view source on GitHub ↗

Request.headers_array An array with all the request HTTP headers associated with this request. Unlike `request.all_headers()`, header names are NOT lower-cased. Headers with multiple entries, such as `Set-Cookie`, appear in the array multiple times. Returns

(self)

Source from the content-addressed store, hash-verified

400 return mapping.from_maybe_impl(self._sync(self._impl_obj.all_headers()))
401
402 def headers_array(self) -> typing.List[NameValue]:
403 """Request.headers_array
404
405 An array with all the request HTTP headers associated with this request. Unlike `request.all_headers()`,
406 header names are NOT lower-cased. Headers with multiple entries, such as `Set-Cookie`, appear in the array multiple
407 times.
408
409 Returns
410 -------
411 List[{name: str, value: str}]
412 """
413
414 return mapping.from_impl_list(self._sync(self._impl_obj.headers_array()))
415
416 def header_value(self, name: str) -> typing.Optional[str]:
417 """Request.header_value

Callers 1

headers_arrayMethod · 0.45

Calls 2

from_impl_listMethod · 0.80
_syncMethod · 0.45

Tested by

no test coverage detected