Skip to content

feat: transparent request headers#4

Merged
christiangda merged 5 commits into
mainfrom
feat-authorization
Sep 27, 2025
Merged

feat: transparent request headers#4
christiangda merged 5 commits into
mainfrom
feat-authorization

Conversation

@christiangda

Copy link
Copy Markdown
Contributor

No description provided.

@christiangda christiangda self-assigned this Sep 27, 2025

Copilot AI left a comment

Copy link
Copy Markdown

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 implements transparent request header handling for the HTTP retry client, making it a true drop-in replacement for http.Client. It removes external dependencies, updates documentation to emphasize transparent operation, and simplifies the codebase.

  • Removes testify dependency and replaces with custom helper functions
  • Updates comments and documentation to emphasize transparent behavior
  • Removes verbose debug output to make retries silent and transparent

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
httpretrier.go Removes debug print statement for silent retry operation
http_client_test.go Replaces testify assertions with custom helper functions and simplifies test logic
http_client.go Updates comments to emphasize transparent operation and improves code structure
go.mod Removes testify dependency and updates Go version to 1.25.1
example_httpretrier_test.go Adds comprehensive examples demonstrating transparent header preservation
README.md Updates documentation to emphasize transparent behavior and adds authorization examples
.github/workflows/release.yml Updates GitHub Actions to newer versions
.github/workflows/pr.yaml Updates GitHub Actions to newer versions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@christiangda christiangda merged commit e31ba06 into main Sep 27, 2025
1 check passed
@christiangda christiangda deleted the feat-authorization branch September 27, 2025 12:52
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.

2 participants