Skip to content

feat: add generic request() method to HttpClientInterface - #322

Merged
butschster merged 1 commit into
mainfrom
hotifx/http-client
Feb 5, 2026
Merged

butschster merged 1 commit into
mainfrom
hotifx/http-client

Conversation

@butschster

Copy link
Copy Markdown
Collaborator

Add a generic request(method, url, headers, body) method to
HttpClientInterface to support arbitrary HTTP methods beyond GET/POST.

  • Add request() to HttpClientInterface
  • Make Psr18Client::request() public (was already method-agnostic internally)
  • Add request() to MockHttpClient for test compatibility

This enables downstream consumers (e.g. MCP custom HTTP tools) to use
PUT, PATCH, DELETE, HEAD, OPTIONS and any other valid HTTP method.

This enables downstream consumers (e.g. MCP custom HTTP tools) to use
PUT, PATCH, DELETE, HEAD, OPTIONS and any other valid HTTP method.
@butschster butschster added this to the 1.34 milestone Feb 5, 2026
@butschster butschster self-assigned this Feb 5, 2026
@butschster butschster added bug Something isn't working mcp MCP server components mcp:tools MCP server tools labels Feb 5, 2026
@codecov

codecov Bot commented Feb 5, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/Lib/HttpClient/Psr18Client.php 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@butschster
butschster merged commit 7ce14e4 into main Feb 5, 2026
9 of 10 checks passed
@butschster
butschster deleted the hotifx/http-client branch February 5, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working mcp:tools MCP server tools mcp MCP server components

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant