Skip to content

Support extension methods in HttpComponentsClientHttpRequestFactory - #37742

Open
AdzerKI wants to merge 1 commit into
spring-projects:mainfrom
AdzerKI:http-components-extension-methods
Open

AdzerKI wants to merge 1 commit into
spring-projects:mainfrom
AdzerKI:http-components-extension-methods

Conversation

@AdzerKI

@AdzerKI AdzerKI commented Nov 22, 2026

Copy link
Copy Markdown

HttpMethod.valueOf() accepts any method name, and the JDK, Jetty and Reactor request factories send it as is, but
HttpComponentsClientHttpRequestFactory throws an
IllegalArgumentException for anything other than the standard methods, so a RestClient on Apache HttpClient cannot send PROPFIND or REPORT to a WebDAV or CalDAV server. It now creates an HttpUriRequestBase with the method name, as it already did for QUERY.

HttpMethod.valueOf() accepts any method name, and the JDK, Jetty and
Reactor request factories send it as is, but
HttpComponentsClientHttpRequestFactory throws an
IllegalArgumentException for anything other than the standard methods,
so a RestClient on Apache HttpClient cannot send PROPFIND or REPORT to
a WebDAV or CalDAV server. It now creates an HttpUriRequestBase with
the method name, as it already did for QUERY.

Signed-off-by: AdzerKI <silver_cat@list.ru>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Nov 22, 2026
@bclozel bclozel added the in: web Issues in web modules (web, webmvc, webflux, websocket) label Nov 22, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: web Issues in web modules (web, webmvc, webflux, websocket) status: waiting-for-triage An issue we've not yet triaged or decided on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants