APISonar


com.linecorp.armeria.common.HttpHeaderNames.DATE

> com > linecorp > armeria > common > HttpHeaderNames > DATE
com APIs linecorp APIs armeria APIs common APIs HttpHeaderNames APIs DATE APIs

Example 1
void testDateHeaderShouldBeExcludedByOption() {
        final WebClient client = WebClient.of(serverWithoutDateHeader.httpUri("/"));
        final AggregatedHttpResponse res = client.get("/").aggregate().join();

        assertThat(res.status()).isEqualTo(HttpStatus.OK);

        assertThat(res.headers().names()).contains(HttpHeaderNames.SERVER);
        assertThat(res.headers().get(HttpHeaderNames.SERVER)).contains("Armeria");

        assertThat(res.headers().names()).doesNotContain(HttpHeaderNames.DATE);
    }