private MediaType mediaType(Map<String, Collection<String>> headers) {
    if (!headers.containsKey(HttpHeaders.CONTENT_TYPE)) return null;

    return MediaType.valueOf(headers.get(HttpHeaders.CONTENT_TYPE).iterator().next());
  }
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