APISonar


org.apache.http.HttpHeaders.DATE

> org > apache > http > HttpHeaders > DATE
org APIs apache APIs http APIs HttpHeaders APIs DATE APIs

Example 1
private void addOzoneHeaders(HttpUriRequest httpRequest) {
    httpRequest.addHeader(HttpHeaders.AUTHORIZATION,
        Header.OZONE_SIMPLE_AUTHENTICATION_SCHEME + " " +
            ugi.getUserName());
    httpRequest.addHeader(HttpHeaders.DATE,
        HddsClientUtils.formatDateTime(Time.monotonicNow()));
    httpRequest.addHeader(Header.OZONE_VERSION_HEADER,
        Header.OZONE_V1_VERSION_HEADER);
  }