This is a proposal to add TS_HTTP_VALUE_BROTLI and TS_HTTP_LEN_BROTLI.

# Proposal
```
tsapi const char *TS_HTTP_VALUE_BROTLI; //< "br"
tsapi int TS_HTTP_LEN_BROTLI; //< 2
```

The whole code change is https://github.com/apache/trafficserver/pull/8477.

# Motivation

Brotli Compressed Data Format is defined by RFC 7932[*1] and registered as
"br" in HTTP Content Coding Registry of IANA [*2].

The compress plugin has its own definition[*3], and I recently added a
similar one in the stats-over-http plugin[*4]. It's worth having them in
the ts/apidef.h like other HTTP Content Codings ( compress, deflate, and
gzip ).

[*1] https://www.rfc-editor.org/rfc/rfc7932.html
[*2]
https://www.iana.org/assignments/http-parameters/http-parameters.xhtml#content-coding
[*3]
https://github.com/apache/trafficserver/blob/2fc91a8b3070007b4cc79d4f7ef642bf0221d20f/plugins/compress/compress.cc#L58-L59
[*4] https://github.com/apache/trafficserver/pull/8475

Thanks,
Masaori

Reply via email to