kean / Pulse

Network logger for Apple platforms
https://pulselogger.com
MIT License
6.18k stars 294 forks source link

Export session logs as HAR file. #236

Closed jjotaum closed 6 months ago

jjotaum commented 6 months ago

This PR attempts to resolve #195 or at least set a good start point to support HAR file exporting.

Generated file is compatible with Proxyman & Charles Proxy

Screenshot 2024-02-07 at 8 15 51 AM Screenshot 2024-02-07 at 8 16 25 AM
kean commented 6 months ago

Fantastic work, thank you @jjotaum. I wanted to add HAR support for a long time, but never had the time to address it. Before I merge it, I just want to confirm that the code in struct HARDocument: Encodable is not a licensed code. Was it created from scratch or taken from somewhere else?

jjotaum commented 6 months ago

Fantastic work, thank you @jjotaum. I wanted to add HAR support for a long time, but never had the time to address it. Before I merge it, I just want to confirm that the code in struct HARDocument: Encodable is not a licensed code. Was it created from scratch or taken from somewhere else?

Cool you liked it, it was created from scratch by me based on HAR specs.

kean commented 6 months ago

Thanks, I'm going to test It soon and release likely together with the preliminary visionOS support being introduced here https://github.com/kean/Pulse/pull/239