docs: show native HTTPS HAR recording lifecycle - #280
Open
MagMueller wants to merge 1 commit into
Open
MagMueller wants to merge 1 commit into
MagMueller wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Clarifies the existing Python Browser HAR recorder: it captures HTTPS, writes the file on session stop, and omit mode removes request/response bodies but does not redact URLs or headers. Adds one local-browser example with a unique output directory and finally/kill cleanup.
Verified on Browser Use main 843819cb using owned loopback HTTP/TLS fixtures. HTTP rendered successfully but produced an empty HAR. HTTPS produced document and POST entries after shutdown. omit and embed behavior, retained synthetic headers/query, and process cleanup were exercised. The documented function also ran with only fixture URL/certificate/output-path adaptations. No model, Cloud API, or public website was used. This does not claim a complete all-tabs or worker archive.
The recipe is unchanged from the previously tested candidate. MDX parsing, Mint links, docs JSON and diff checks passed. One authored docs file only; generated exports removed upstream are not restored. No runtime or dependency change.
Summary by cubic
Clarifies the existing Python Browser HAR recorder docs: it captures HTTPS, writes the HAR when the browser session stops, and
record_har_content='omit'removes request/response bodies without redacting URLs, query strings, or headers.finally/killcleanup.Written for commit 1671b31. Summary will update on new commits.