You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2021/02/25 11:09:53 UTC

[httpcomponents-core] branch master updated: HTTPCORE-670 - Add new headers

This is an automated email from the ASF dual-hosted git repository.

olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 7a919a6  HTTPCORE-670 -  Add new headers
7a919a6 is described below

commit 7a919a67c4af37eb99970ddecd3eaf01c67dc8de
Author: Arturo Bernal <ar...@gmail.com>
AuthorDate: Thu Feb 25 08:49:41 2021 +0100

    HTTPCORE-670 -  Add new headers
---
 .../java/org/apache/hc/core5/http/HttpHeaders.java | 52 ++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/HttpHeaders.java b/httpcore5/src/main/java/org/apache/hc/core5/http/HttpHeaders.java
index 5a27b48..ce6dced 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/HttpHeaders.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/HttpHeaders.java
@@ -48,6 +48,39 @@ public final class HttpHeaders {
 
     public static final String ACCEPT_RANGES = "Accept-Ranges";
 
+    /**
+     * The CORS {@code Access-Control-Allow-Credentials} response header field name.
+     */
+    public static final String ACCESS_CONTROL_ALLOW_CREDENTIALS = "Access-Control-Allow-Credentials";
+    /**
+     * The CORS {@code Access-Control-Allow-Headers} response header field name.
+     */
+    public static final String ACCESS_CONTROL_ALLOW_HEADERS = "Access-Control-Allow-Headers";
+    /**
+     * The CORS {@code Access-Control-Allow-Methods} response header field name.
+     */
+    public static final String ACCESS_CONTROL_ALLOW_METHODS = "Access-Control-Allow-Methods";
+    /**
+     * The CORS {@code Access-Control-Allow-Origin} response header field name.
+     */
+    public static final String ACCESS_CONTROL_ALLOW_ORIGIN = "Access-Control-Allow-Origin";
+    /**
+     * The CORS {@code Access-Control-Expose-Headers} response header field name.
+     */
+    public static final String ACCESS_CONTROL_EXPOSE_HEADERS = "Access-Control-Expose-Headers";
+    /**
+     * The CORS {@code Access-Control-Max-Age} response header field name.
+     */
+    public static final String ACCESS_CONTROL_MAX_AGE = "Access-Control-Max-Age";
+    /**
+     * The CORS {@code Access-Control-Request-Headers} request header field name.
+     */
+    public static final String ACCESS_CONTROL_REQUEST_HEADERS = "Access-Control-Request-Headers";
+    /**
+     * The CORS {@code Access-Control-Request-Method} request header field name.
+     */
+    public static final String ACCESS_CONTROL_REQUEST_METHOD = "Access-Control-Request-Method";
+
     public static final String AGE = "Age";
 
     public static final String ALLOW = "Allow";
@@ -59,6 +92,10 @@ public final class HttpHeaders {
     public static final String CONNECTION = "Connection";
 
     public static final String CONTENT_ENCODING = "Content-Encoding";
+    /**
+     * The HTTP {@code Content-Disposition} header field name.
+     */
+    public static final String CONTENT_DISPOSITION = "Content-Disposition";
 
     public static final String CONTENT_LANGUAGE = "Content-Language";
 
@@ -72,6 +109,11 @@ public final class HttpHeaders {
 
     public static final String CONTENT_TYPE = "Content-Type";
 
+    /**
+     * The HTTP {@code Cookie} header field name.
+     */
+    public static final String COOKIE = "Cookie";
+
     public static final String DATE = "Date";
 
     public static final String DAV = "Dav";
@@ -106,6 +148,11 @@ public final class HttpHeaders {
 
     public static final String LAST_MODIFIED = "Last-Modified";
 
+    /**
+     * The HTTP {@code Link} header field name.
+     */
+    public static final String LINK = "Link";
+
     public static final String LOCATION = "Location";
 
     public static final String LOCK_TOKEN = "Lock-Token";
@@ -130,6 +177,11 @@ public final class HttpHeaders {
 
     public static final String STATUS_URI = "Status-URI";
 
+    /**
+     * The HTTP {@code Set-Cookie} header field name.
+     */
+    public static final String SET_COOKIE = "Set-Cookie";
+
     public static final String TE = "TE";
 
     public static final String TIMEOUT = "Timeout";