Skip to content

HTTPClientTransport WithClient #113

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

Merged
merged 1 commit into from
May 7, 2025
Merged

Conversation

laotoutou
Copy link
Contributor

No description provided.

@Copilot Copilot AI review requested due to automatic review settings May 6, 2025 16:58
Copy link

@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 introduces a new method, WithClient, on the HTTPClientTransport to allow users to override the default HTTP client used in requests.

  • Adds the WithClient method to configure the HTTP client.
  • Supports method chaining by returning the modified transport instance.

@ecekyn ecekyn merged commit 438ef94 into metoro-io:main May 7, 2025
1 check passed
ecekyn added a commit that referenced this pull request May 7, 2025
@ecekyn
Copy link
Contributor

ecekyn commented May 7, 2025

Hey @laotoutou, i had to revert this in #114, to merge the custom http client implementation which I have just seen: (#111)

Let me know if this doesn't work for you. Thanks for your contribution either way!

dissoupov pushed a commit to effective-security/mcp-golang that referenced this pull request May 16, 2025
dissoupov pushed a commit to effective-security/mcp-golang that referenced this pull request May 16, 2025
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