diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/HttpHeaderNames.java b/codec-http/src/main/java/io/netty/handler/codec/http/HttpHeaderNames.java index f6f15ddc13..811712abe5 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/HttpHeaderNames.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/HttpHeaderNames.java @@ -160,6 +160,10 @@ public final class HttpHeaderNames { * {@code "date"} */ public static final AsciiString DATE = AsciiString.cached("date"); + /** + * {@code "dnt"} + */ + public static final AsciiString DNT = AsciiString.cached("dnt"); /** * {@code "etag"} */ @@ -318,6 +322,10 @@ public final class HttpHeaderNames { * {@code "upgrade"} */ public static final AsciiString UPGRADE = AsciiString.cached("upgrade"); + /** + * {@code "upgrade-insecure-requests"} + */ + public static final AsciiString UPGRADE_INSECURE_REQUESTS = AsciiString.cached("upgrade-insecure-requests"); /** * {@code "user-agent"} */ @@ -354,6 +362,10 @@ public final class HttpHeaderNames { * {@code "x-frame-options"} */ public static final AsciiString X_FRAME_OPTIONS = AsciiString.cached("x-frame-options"); + /** + * {@code "x-requested-with"} + */ + public static final AsciiString X_REQUESTED_WITH = AsciiString.cached("x-requested-with"); private HttpHeaderNames() { } } diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/HttpHeaderValues.java b/codec-http/src/main/java/io/netty/handler/codec/http/HttpHeaderValues.java index 2b5b6bbe02..97d9a316e2 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/HttpHeaderValues.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/HttpHeaderValues.java @@ -35,6 +35,14 @@ public final class HttpHeaderValues { * {@code "application/octet-stream"} */ public static final AsciiString APPLICATION_OCTET_STREAM = AsciiString.cached("application/octet-stream"); + /** + * {@code "application/xhtml+xml"} + */ + public static final AsciiString APPLICATION_XHTML = AsciiString.cached("application/xhtml+xml"); + /** + * {@code "application/xml"} + */ + public static final AsciiString APPLICATION_XML = AsciiString.cached("application/xml"); /** * {@code "attachment"} * See {@link HttpHeaderNames#CONTENT_DISPOSITION} @@ -192,6 +200,18 @@ public final class HttpHeaderValues { * {@code "s-maxage"} */ public static final AsciiString S_MAXAGE = AsciiString.cached("s-maxage"); + /** + * {@code "text/css"} + */ + public static final AsciiString TEXT_CSS = AsciiString.cached("text/css"); + /** + * {@code "text/html"} + */ + public static final AsciiString TEXT_HTML = AsciiString.cached("text/html"); + /** + * {@code "text/event-stream"} + */ + public static final AsciiString TEXT_EVENT_STREAM = AsciiString.cached("text/event-stream"); /** * {@code "text/plain"} */ @@ -208,6 +228,10 @@ public final class HttpHeaderValues { * {@code "websocket"} */ public static final AsciiString WEBSOCKET = AsciiString.cached("websocket"); + /** + * {@code "websocket"} + */ + public static final AsciiString XML_HTTP_REQUEST = AsciiString.cached("XmlHttpRequest"); private HttpHeaderValues() { } }