Adds the HarGeneratorPlugin. Closes #1412#1421
Merged
waldekmastykarz merged 2 commits intodotnet:mainfrom Oct 20, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
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 |
Collaborator
Author
|
Converted to draft: forgot to add a schema for the new plugin |
garrytrinder
approved these changes
Oct 20, 2025
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.
Adds the HarGeneratorPlugin. Closes #1412