Add zstd http header value (#11463)

Motivation:

ZSTD has a wide range of uses on the Internet, so should consider adding `application/zstd` HTTP media-type and `zstd` content-encoding, see  https://tools.ietf.org/html/rfc8478

Modification:

Add `application/zstd` HTTP media-type and `zstd` content-encoding

Result:

netty provides `application/zstd` HTTP media-type and `zstd content-encoding` as http headers

Signed-off-by: xingrufei <xingrufei@sogou-inc.com>
Co-authored-by: xingrufei <xingrufei@sogou-inc.com>
This commit is contained in:
skyguard1 2021-07-08 17:44:54 +08:00 committed by Norman Maurer
parent ed834254ce
commit 95a59af549

View File

@ -43,6 +43,10 @@ public final class HttpHeaderValues {
* {@code "application/xml"} * {@code "application/xml"}
*/ */
public static final AsciiString APPLICATION_XML = AsciiString.cached("application/xml"); public static final AsciiString APPLICATION_XML = AsciiString.cached("application/xml");
/**
* {@code "application/zstd"}
*/
public static final AsciiString APPLICATION_ZSTD = AsciiString.cached("application/zstd");
/** /**
* {@code "attachment"} * {@code "attachment"}
* See {@link HttpHeaderNames#CONTENT_DISPOSITION} * See {@link HttpHeaderNames#CONTENT_DISPOSITION}
@ -115,6 +119,10 @@ public final class HttpHeaderValues {
* {@code "br"} * {@code "br"}
*/ */
public static final AsciiString BR = AsciiString.cached("br"); public static final AsciiString BR = AsciiString.cached("br");
/**
* {@code "zstd"}
*/
public static final AsciiString ZSTD = AsciiString.cached("zstd");
/** /**
* {@code "gzip,deflate"} * {@code "gzip,deflate"}
*/ */