Adds a ContentTypeExceptions function to support excluding/blacklisting a set of content-types.
An example use case is wanting to use Brotli content-encoding for a set of content-types and continue using gzip for all other content-types, without having to that universal set.
The ContentTypes and ContentTypeExceptions configuration options are mutually exclusive so GzipHandlerWithOpts returns an error if both options are provided.
Adds a
ContentTypeExceptions
function to support excluding/blacklisting a set of content-types.An example use case is wanting to use Brotli content-encoding for a set of content-types and continue using gzip for all other content-types, without having to that universal set.
The
ContentTypes
andContentTypeExceptions
configuration options are mutually exclusive soGzipHandlerWithOpts
returns an error if both options are provided.