private Entity<byte[]> createRequestEntity(feign.Request request) {
    if (request.body() == null) {
      return null;
    }

    return Entity.entity(
        request.body(),
        new Variant(
            mediaType(request.headers()), locale(request.headers()), encoding(request.charset())));
  }
This module directs Feign's http requests to javax.ws.rs.client.Client . Ex:

<pre>
GitHub github =
    Feign.builder().client(new JaxRSClient()).target(GitHub.class, "https://api.github.com");
</pre>
jaxrs2/src/main/java/feign/jaxrs2/JAXRSClient.java