@@ -268,7 +268,9 @@ def timing(self) -> ResourceTiming:
268268 def headers(self) -> typing.Dict[str, str]:
269269 """Request.headers
270270
271- **DEPRECATED** Incomplete list of headers as seen by the rendering engine. Use `request.all_headers()` instead.
271+ An object with the request HTTP headers. The header names are lower-cased. Note that this method does not return
272+ security-related headers, including cookie-related ones. You can use `request.all_headers()` for complete list of
273+ headers that include `cookie` information.
272274
273275 Returns
274276 -------
@@ -411,7 +413,9 @@ def status_text(self) -> str:
411413 def headers(self) -> typing.Dict[str, str]:
412414 """Response.headers
413415
414- **DEPRECATED** Incomplete list of headers as seen by the rendering engine. Use `response.all_headers()` instead.
416+ An object with the response HTTP headers. The header names are lower-cased. Note that this method does not return
417+ security-related headers, including cookie-related ones. You can use `response.all_headers()` for complete list
418+ of headers that include `cookie` information.
415419
416420 Returns
417421 -------
@@ -10917,6 +10921,13 @@ async def new_context(
1091710921 - `'allow'`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered.
1091810922 - `'block'`: Playwright will block all registration of Service Workers.
1091910923 record_har_url_filter : Union[Pattern, str, NoneType]
10924+ record_har_mode : Union["full", "minimal", NoneType]
10925+ When set to `minimal`, only record information necessary for routing from HAR. This omits sizes, timing, page, cookies,
10926+ security and other types of HAR information that are not used when replaying from HAR. Defaults to `full`.
10927+ record_har_content : Union["attach", "embed", "omit", NoneType]
10928+ Optional setting to control resource content management. If `omit` is specified, content is not persisted. If `attach`
10929+ is specified, resources are persistet as separate files and all of these files are archived along with the HAR file.
10930+ Defaults to `embed`, which stores content inline the HAR file as per HAR specification.
1092010931
1092110932 Returns
1092210933 -------
@@ -11103,6 +11114,13 @@ async def new_page(
1110311114 - `'allow'`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered.
1110411115 - `'block'`: Playwright will block all registration of Service Workers.
1110511116 record_har_url_filter : Union[Pattern, str, NoneType]
11117+ record_har_mode : Union["full", "minimal", NoneType]
11118+ When set to `minimal`, only record information necessary for routing from HAR. This omits sizes, timing, page, cookies,
11119+ security and other types of HAR information that are not used when replaying from HAR. Defaults to `full`.
11120+ record_har_content : Union["attach", "embed", "omit", NoneType]
11121+ Optional setting to control resource content management. If `omit` is specified, content is not persisted. If `attach`
11122+ is specified, resources are persistet as separate files and all of these files are archived along with the HAR file.
11123+ Defaults to `embed`, which stores content inline the HAR file as per HAR specification.
1110611124
1110711125 Returns
1110811126 -------
@@ -11588,6 +11606,13 @@ async def launch_persistent_context(
1158811606 - `'allow'`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered.
1158911607 - `'block'`: Playwright will block all registration of Service Workers.
1159011608 record_har_url_filter : Union[Pattern, str, NoneType]
11609+ record_har_mode : Union["full", "minimal", NoneType]
11610+ When set to `minimal`, only record information necessary for routing from HAR. This omits sizes, timing, page, cookies,
11611+ security and other types of HAR information that are not used when replaying from HAR. Defaults to `full`.
11612+ record_har_content : Union["attach", "embed", "omit", NoneType]
11613+ Optional setting to control resource content management. If `omit` is specified, content is not persisted. If `attach`
11614+ is specified, resources are persistet as separate files and all of these files are archived along with the HAR file.
11615+ Defaults to `embed`, which stores content inline the HAR file as per HAR specification.
1159111616
1159211617 Returns
1159311618 -------
0 commit comments