Skip to content

Conversation

waldekmastykarz
Copy link
Collaborator

Adds the HarGeneratorPlugin. Closes #1412

@waldekmastykarz waldekmastykarz requested a review from a team as a code owner October 12, 2025 13:50
@Copilot Copilot AI review requested due to automatic review settings October 12, 2025 13:50
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new HarGeneratorPlugin that generates HTTP Archive (HAR) files from recorded HTTP requests. The HAR format is a standard JSON format for capturing HTTP interactions.

  • Adds a new HarGeneratorPlugin that creates HAR files from intercepted HTTP requests/responses
  • Creates HAR data models to represent the HAR file structure
  • Updates existing generator plugins to use fully qualified names for HTTP utility constants

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
DevProxy.Plugins/Models/Http.cs Adds namespace declaration and new SensitiveHeaders array for filtering sensitive data
DevProxy.Plugins/Models/Har.cs Creates comprehensive HAR format data models including HarFile, HarLog, HarEntry, and related classes
DevProxy.Plugins/Generation/TypeSpecGeneratorPlugin.cs Updates references to use Models.Http namespace for HTTP constants
DevProxy.Plugins/Generation/OpenApiSpecGeneratorPlugin.cs Updates references to use Models.Http namespace for HTTP constants
DevProxy.Plugins/Generation/HarGeneratorPlugin.cs Implements the main HAR generator plugin with configuration options for sensitive data handling

@waldekmastykarz waldekmastykarz marked this pull request as draft October 13, 2025 07:11
@waldekmastykarz
Copy link
Collaborator Author

Converted to draft: forgot to add a schema for the new plugin

@waldekmastykarz waldekmastykarz marked this pull request as ready for review October 17, 2025 09:31
@waldekmastykarz waldekmastykarz merged commit bfc5d15 into dotnet:main Oct 20, 2025
4 checks passed
@waldekmastykarz waldekmastykarz deleted the har branch October 20, 2025 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create a HAR export plugin

2 participants