Back to Feign

README

hc5/README.md

13.12482 B
Original Source

Apache Http Components 5

This module directs Feign's http requests to Apache's HttpClient 5.

To use HttpClient with Feign, add the feign-hc5 module to your classpath. Then, configure Feign to use the ApacheHttp5Client:

java
GitHub github = Feign.builder()
                     .client(new ApacheHttp5Client())
                     .target(GitHub.class, "https://api.github.com");