org.apache.olingo.commons.api.http.HttpHeader Maven / Gradle / Ivy
The newest version!
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://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 org.apache.olingo.commons.api.http;
/**
* HTTP header constants.
*/
public interface HttpHeader {
/**
* See {@link HTTP/1.1 documentation}.
*/
String ACCEPT = "Accept";
/**
* See {@link HTTP/1.1 documentation}.
*/
String ACCEPT_CHARSET = "Accept-Charset";
/**
* See {@link HTTP/1.1 documentation}.
*/
String ACCEPT_ENCODING = "Accept-Encoding";
/**
* See {@link HTTP/1.1 documentation}.
*/
String ACCEPT_LANGUAGE = "Accept-Language";
/**
* See {@link HTTP/1.1 documentation}.
*/
String ALLOW = "Allow";
/**
* See {@link HTTP/1.1 documentation}.
*/
String AUTHORIZATION = "Authorization";
/**
* See {@link HTTP/1.1 documentation}.
*/
String CACHE_CONTROL = "Cache-Control";
/**
* See {@link HTTP/1.1 documentation}.
*/
String CONTENT_ENCODING = "Content-Encoding";
/**
* See {@link HTTP/1.1 documentation}.
*/
String CONTENT_LANGUAGE = "Content-Language";
/** See RFC 2392. */
String CONTENT_ID = "Content-ID";
/**
* See {@link HTTP/1.1 documentation}.
*/
String CONTENT_LENGTH = "Content-Length";
/**
* See {@link HTTP/1.1 documentation}.
*/
String CONTENT_LOCATION = "Content-Location";
/**
* See {@link HTTP/1.1 documentation}.
*/
String CONTENT_TYPE = "Content-Type";
/**
* See {@link HTTP/1.1 documentation}.
*/
String DATE = "Date";
/**
* See {@link HTTP/1.1 documentation}.
*/
String ETAG = "ETag";
/** See RFC 7231. */
String EXPECT = "Expect";
/**
* See {@link HTTP/1.1 documentation}.
*/
String EXPIRES = "Expires";
/** See RFC 7231. */
String FROM = "From";
/**
* See {@link HTTP/1.1 documentation}.
*/
String HOST = "Host";
/**
* See {@link HTTP/1.1 documentation}.
*/
String IF_MATCH = "If-Match";
/**
* See {@link HTTP/1.1 documentation}.
*/
String IF_MODIFIED_SINCE = "If-Modified-Since";
/**
* See {@link HTTP/1.1 documentation}.
*/
String IF_NONE_MATCH = "If-None-Match";
/**
* See {@link HTTP/1.1 documentation}.
*/
String IF_UNMODIFIED_SINCE = "If-Unmodified-Since";
/**
* See {@link HTTP/1.1 documentation}.
*/
String LAST_MODIFIED = "Last-Modified";
/**
* See {@link HTTP/1.1 documentation}.
*/
String LOCATION = "Location";
/**
* See {@link Web Linking (IETF RFC-5988) documentation}.
*/
String LINK = "Link";
/** See RFC 7231. */
String MAX_FORWARDS = "Max-Forwards";
/**
* OData Prefer Header.
* See
* OData Version 4.0 Part 1: Protocol and RFC 7240.
*/
String PREFER = "Prefer";
/**
* OData Preference-Applied Header.
* See
* OData Version 4.0 Part 1: Protocol and RFC 7240.
*/
String PREFERENCE_APPLIED = "Preference-Applied";
/** See RFC 7233. */
String RANGE = "Range";
/**
* See {@link HTTP/1.1 documentation}.
*/
String RETRY_AFTER = "Retry-After";
/** See RFC 7230. */
String TE = "TE";
/**
* See {@link HTTP/1.1 documentation}.
*/
String USER_AGENT = "User-Agent";
/**
* See {@link HTTP/1.1 documentation}.
*/
String VARY = "Vary";
/**
* See {@link HTTP/1.1 documentation}.
*/
String WWW_AUTHENTICATE = "WWW-Authenticate";
/**
* See {@link IETF RFC 2109}.
*/
String COOKIE = "Cookie";
/**
* See {@link IETF RFC 2109}.
*/
String SET_COOKIE = "Set-Cookie";
/** Non standard header. */
String X_HTTP_METHOD = "X-HTTP-Method";
/** Non standard header. */
String X_HTTP_METHOD_OVERRIDE = "X-HTTP-Method-Override";
/** Custom Header defined in the OData standard. */
String ODATA_VERSION = "OData-Version";
/** Custom Header defined in the OData standard. */
String ODATA_MAX_VERSION = "OData-MaxVersion";
/** Custom Header defined in the OData standard. */
String ODATA_ENTITY_ID = "OData-EntityID";
/** Custom Header defined in the OData standard. */
String ODATA_ISOLATION= "OData-Isolation";
}