[Feature] Recording actual values in HAR file / recordHar
See original GitHub issuerecordHar
is a great option for analyzing and debugging HTTP requests and responses, especially since there doesn’t seem to be browser support for generating HAR files via the command-line.
There seem to be several placeholder values in the resulting HAR file as generated by harTracer.ts
. For example, HTTP version is always set to HTTP/1.1
, and other fields are always set to -1
:
It seems like many (if not all?) of the placeholder values could be replaced with the actual values from network.Request
and network.Response
: is there any reason why that wouldn’t work? Are there any particular cross-platform or cross-browser issues to consider?
I’m implementing this feature for my own use and more than happy to push it upstream for review and feedback.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Closing since HAR has now more sizes, httpVersion, etc. Please create a new issue which fields are exactly missing, thanks!
@cardi @dgozman just hopping in here to show interest. Mostly the size properties are very relevant to many use cases with the HAR file, e.g.
Having these values as
-1
prohibits analyses on, well, file and transfer sizes. Will have a stab at providing a PR.