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

Method headersAreOptional

core/src/test/java/feign/ResponseTest.java:113–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111 }
112
113 @Test
114 void headersAreOptional() {
115 Response response =
116 Response.builder()
117 .status(200)
118 .request(
119 Request.create(HttpMethod.GET, "/api", Collections.emptyMap(), null, Util.UTF_8))
120 .body(new byte[0])
121 .build();
122 assertThat(response.headers()).isNotNull().isEmpty();
123 }
124
125 @Test
126 void support1xxStatusCodes() {

Callers

nothing calls this directly

Calls 9

builderMethod · 0.95
createMethod · 0.95
headersMethod · 0.95
isEmptyMethod · 0.80
bodyMethod · 0.65
buildMethod · 0.45
requestMethod · 0.45
statusMethod · 0.45
assertThatMethod · 0.45

Tested by

no test coverage detected