Skip to content

Support JdkClientHttpConnector in DefaultWebTestClientBuilder #29644

@mhalbritter

Description

@mhalbritter

In org.springframework.test.web.reactive.server.DefaultWebTestClientBuilder#initConnector there are checks for Reactor Netty, Jetty and Apache Http for the ClientHttpConnector implementation. As there is now a JdkClientHttpConnector which works without external dependencies, I think it would be nice if DefaultWebTestClientBuilder could fallback to that instead of throwing an exception.

I don't know if there are more places which do this auto-detection of ClientHttpConnector, but if there are, it would be nice to update them to include JdkClientHttpConnector.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: testIssues in the test modulestatus: supersededAn issue that has been superseded by anothertype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions