const mixinafBedSheet::GzipCompressible

afBedSheet::GzipCompressible

(Service) - Holds a list of MimeTypes that may be gzip'ed in a HTTP response. A standard set of types are configured by default. To add to the list:

@Contribute { serviceType=GzipCompressible# }
static Void configureGzipCompressible(MappedConfig conf) {
   conf[MimeType("text/funky")] = true
}

@uses a MappedConfig of MimeType:Bool

isCompressible

Source

abstract Bool isCompressible(MimeType? mimeType)

Returns true if the given MimeType may be compressed.

Only the mediaType and subType are used for matching, case is ignored.