-
Notifications
You must be signed in to change notification settings - Fork 0
FEAT: implement HAR converter with request/response handling, proxy support, and devcontainer improvements #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Mathious6
wants to merge
60
commits into
main
Choose a base branch
from
feat/har-converter
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
…TP response conversion
…and saving to file
…ct URL in response test
…alculate total time
…for accurate time calculation
…plifying request handling
…ion and append newline
… response conversions
…Length for headers and body size
… update URL usage
…update comments for clarity
… Zsh installation, and enhance plugin setup
…son to use container image and manage Zsh plugins through features
…dd new request methods for GET and POST with query parameters, form data, and JSON
…scripts, enhance .gitignore for development files, and adjust README for clarity
… proxy for HTTP requests and implement isProxyRunning function to check proxy availability
…ated function signatures
…r functions for expiration formatting and query/post data extraction
…tegrating entry creation directly into HARHandler methods
…reamline HAR entry creation
…r and related functions
…ersion upgrade (1.25)
…uestHTTPVersion constant and updating request conversion logic
…ing time fields in Page and Entry structures
…agement and updating header processing logic
…nagement and updating header processing logic
… in request and response handling
…loning and directly using the original request
…simplifying body reading logic
…ed values with constants and adjusting header assertions
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.
This PR introduces a full HAR converter implementation along with significant enhancements to request/response handling, proxy integration, and development environment setup.
HAR Converter
converterpackage for convertingfhttprequests and responses into HAR format.FromHTTPRequest) and response (FromHTTPResponse) conversion functions.HARTimetype for strict HAR-compliant timestamp formatting.Timings.Total()method for calculating total request/response duration.HAR Handler
harhandlerpackage to manage HAR sessions, entries, and export.ExportandAddEntryfunctions for managing HAR lifecycle.Examples
example/main.godemonstrating GET/POST requests with query params, cookies, form data, and JSON.isProxyRunning).example.har) viaharhandler.Export.Devcontainer & Tooling
mcr.microsoft.com/devcontainers/go:1.24base image (ready for 1.25 upgrade)..devcontainer/initialize.shandpost-create.shfor certificate setup and CA updates.devcontainers-extra/features/zsh-plugins..vscodedebug launch config and updated settings to exclude.certs.Other Changes
Versionconstant inversion.go(v1.0.0).README.mdwith purpose, requirements, and usage notes..gitignorefor devcontainer certs, debug binaries,.DS_Store.New dependencies:
net/httpwith header order support.