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

Method headers_array

playwright/sync_api/_generated.py:552–564  ·  view source on GitHub ↗

Response.headers_array An array with all the request HTTP headers associated with this response. Unlike `response.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

550 return mapping.from_maybe_impl(self._sync(self._impl_obj.all_headers()))
551
552 def headers_array(self) -> typing.List[NameValue]:
553 """Response.headers_array
554
555 An array with all the request HTTP headers associated with this response. Unlike `response.all_headers()`,
556 header names are NOT lower-cased. Headers with multiple entries, such as `Set-Cookie`, appear in the array multiple
557 times.
558
559 Returns
560 -------
561 List[{name: str, value: str}]
562 """
563
564 return mapping.from_impl_list(self._sync(self._impl_obj.headers_array()))
565
566 def header_value(self, name: str) -> typing.Optional[str]:
567 """Response.header_value

Callers

nothing calls this directly

Calls 3

from_impl_listMethod · 0.80
_syncMethod · 0.45
headers_arrayMethod · 0.45

Tested by

no test coverage detected