MCPcopy Index your code
hub / github.com/OpenFeign/feign / locale

Method locale

jaxrs2/src/main/java/feign/jaxrs2/JAXRSClient.java:111–115  ·  view source on GitHub ↗
(Map<String, Collection<String>> headers)

Source from the content-addressed store, hash-verified

109 }
110
111 private String locale(Map<String, Collection<String>> headers) {
112 if (!headers.containsKey(HttpHeaders.CONTENT_LANGUAGE)) return null;
113
114 return headers.get(HttpHeaders.CONTENT_LANGUAGE).iterator().next();
115 }
116
117 private MediaType mediaType(Map<String, Collection<String>> headers) {
118 if (!headers.containsKey(HttpHeaders.CONTENT_TYPE)) return null;

Callers 1

createRequestEntityMethod · 0.95

Calls 4

containsKeyMethod · 0.80
iteratorMethod · 0.80
nextMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected