APISonar


io.helidon.common.http.Http.Header.DATE

> io > helidon > common > http > Http > Header > DATE
io APIs helidon APIs common APIs http APIs Http APIs Header APIs DATE APIs

Example 1
public void date() {
        HashRequestHeaders hs = withHeader(Http.Header.DATE, "Tue, 3 Jun 2008 11:05:30 GMT");
        assertThat(hs.date().orElse(null), is(ZDT));
    }
Example 2
HashResponseHeaders(BareResponse bareResponse) {
        this.completable = new CompletionSupport(bareResponse);
        if (bareResponse != null) {
            bareResponse.whenHeadersCompleted()
                    .thenRun(() -> completionStage.complete(this))
                    .exceptionally(thr -> {
                        completionStage.completeExceptionally(thr);
                        return null;
                    });
        }
        // Set standard headers
        this.put(Http.Header.DATE, ZonedDateTime.now().format(Http.DateTime.RFC_1123_DATE_TIME));
    }