TurtleIO.prototype.compression = function ( agent, encoding, mimetype ) {
var result = null,
encodings = typeof encoding === "string" ? encoding.explode() : [];
if ( REGEX_COMP.test( mimetype ) && this.config.compress === true && !REGEX_IE.test( agent ) ) {
Method compression
Determines what/if compression is supported for a request
Parameters:
agent must be a String.
(User-Agent header value)
encoding must be a String.
(Accept-Encoding header value)
mimetype must be a String.
(Mime type of response body)
Returns a Mixed
(Supported compression or null)