Skip to content

Use client interface in NewHTTPClientTransport #111

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

Conversation

dissoupov
Copy link
Contributor

No description provided.

@Copilot Copilot AI review requested due to automatic review settings May 2, 2025 15:16
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 an HTTPClient interface to allow the HTTPClientTransport to use any client implementing Do(*http.Request) (*http.Response, error), not just the default http.Client.

  • Added a new HTTPClient interface.
  • Changed the client field type in HTTPClientTransport.
  • Added a WithClient method to set a custom HTTPClient.

@ecekyn ecekyn merged commit 162a6c3 into metoro-io:main May 7, 2025
1 check passed
dissoupov added 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