cherry-pick(#15097): docs: recordHar content and mode options for lan… (#15098)

This commit is contained in:
Yury Semikhatsky 2022-06-23 18:58:17 -07:00 committed by GitHub
parent 7b78e71433
commit 270675a89f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -586,6 +586,20 @@ call [`method: BrowserContext.close`] for the HAR to be saved.
Optional setting to control whether to omit request content from the HAR. Defaults to `false`. Optional setting to control whether to omit request content from the HAR. Defaults to `false`.
## context-option-recordhar-content
* langs: csharp, java, python
- alias-python: record_har_content
- `recordHarContent` ?<[HarContentPolicy]<"omit"|"embed"|"attach">>
Optional setting to control resource content management. If `omit` is specified, content is not persisted. If `attach` is specified, resources are persistet as separate files and all of these files are archived along with the HAR file. Defaults to `embed`, which stores content inline the HAR file as per HAR specification.
## context-option-recordhar-mode
* langs: csharp, java, python
- alias-python: record_har_mode
- `recordHarMode` ?<[HarMode]<"full"|"minimal">>
When set to `minimal`, only record information necessary for routing from HAR. This omits sizes, timing, page, cookies, security and other types of HAR information that are not used when replaying from HAR. Defaults to `full`.
## context-option-recordhar-url-filter ## context-option-recordhar-url-filter
* langs: csharp, java, python * langs: csharp, java, python
- alias-python: record_har_url_filter - alias-python: record_har_url_filter
@ -807,6 +821,8 @@ An acceptable perceived color difference in the [YIQ color space](https://en.wik
- %%-context-option-recordhar-%% - %%-context-option-recordhar-%%
- %%-context-option-recordhar-path-%% - %%-context-option-recordhar-path-%%
- %%-context-option-recordhar-omit-content-%% - %%-context-option-recordhar-omit-content-%%
- %%-context-option-recordhar-content-%%
- %%-context-option-recordhar-mode-%%
- %%-context-option-recordhar-url-filter-%% - %%-context-option-recordhar-url-filter-%%
- %%-context-option-recordvideo-%% - %%-context-option-recordvideo-%%
- %%-context-option-recordvideo-dir-%% - %%-context-option-recordvideo-dir-%%