io.micronaut.http.HttpHeaderValues Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2017-2020 original authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.micronaut.http;
/**
* Interface for common HTTP header values.
*
* @author graemerocher
* @since 1.0
*/
public interface HttpHeaderValues {
/**
* {@code "keep-alive"}.
*/
String CONNECTION_KEEP_ALIVE = "keep-alive";
/**
* {@code "Bearer"}.
*/
String AUTHORIZATION_PREFIX_BEARER = "Bearer";
/**
* {@code "Basic"}.
*/
String AUTHORIZATION_PREFIX_BASIC = "Basic";
/**
* @see Rfc 7234 section-5.2.1.1
* @see Rfc 7234 section-5.2.2.8
*/
String CACHE_MAX_AGE = "max-age";
/**
* @see Rfc 7234 section-5.2.1.2
*/
String CACHE_MAX_STALE = "max-stale";
/**
* @see Rfc 7234 section-5.2.1.3
*/
String CACHE_MIN_FRESH = "min-fresh";
/**
* @see Rfc 7234 section-5.2.2.1
*/
String CACHE_MUST_REVALIDATE = "must-revalidate";
/**
* @see Rfc 7234 section-5.2.1.4
* @see Rfc 7234 section-5.2.2.2
*/
String CACHE_NO_CACHE = "no-cache";
/**
* @see Rfc 7234 section-5.2.1.5
* @see Rfc 7234 section-5.2.2.3
*/
String CACHE_NO_STORE = "no-store";
/**
* @see Rfc 7234 section-5.2.1.6
* @see Rfc 7234 section-5.2.2.4
*/
String CACHE_NO_TRANSFORM = "no-transform";
/**
* @see Rfc 7234 section-5.2.1.7
*/
String CACHE_ONLY_IF_CACHED = "only-if-cached";
/**
* @see Rfc 7234 section-5.2.2.6
*/
String CACHE_PRIVATE = "private";
/**
* @see Rfc 7234 section-5.2.2.7
*/
String CACHE_PROXY_REVALIDATE = "proxy-revalidate";
/**
* @see Rfc 7234 section-5.2.2.5
*/
String CACHE_PUBLIC = "proxy-revalidate";
/**
* @see Rfc 7234 section-5.2.2.9
*/
String CACHE_S_MAXAGE = "s-maxage";
/**
* @see RFC5861, Section 4
*/
String CACHE_STALE_IF_ERROR = "stale-if-error";
/**
* @see RFC5861, Section 3
*/
String CACHE_STALE_WHILE_REVALIDATE = "stale-while-revalidate";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy