function decompressed(req, encoding) {
    switch (encoding) {
        case 'identity':
            return req;
        case 'deflate':
            return req.pipe(zlib_1.default.createInflate());
        case 'gzip':
            return req.pipe(zlib_1.default.createGunzip());
    }
    throw http_errors_1.default(415, `Unsupported content-encoding "${encoding}".`);
}
// Return a decompressed stream, given an encoding.
Return a decompressed stream, given an encoding.
Return a decompressed stream given an encoding .
function decompressed(req, encoding) {
    switch (encoding) {
        case 'identity':
            return req;
        case 'deflate':
            return req.pipe(zlib_1.default.createInflate());
        case 'gzip':
            return req.pipe(zlib_1.default.createGunzip());
    }
    throw http_errors_1.default(415, `Unsupported content-encoding "${encoding}".`);
}
function decompressed ( req , encoding ) { switch ( encoding ) { case 'identity' : return req ; case 'deflate' : return req . pipe ( zlib_1 . default . createInflate ( ) ) ; case 'gzip' : return req . pipe ( zlib_1 . default . createGunzip ( ) ) ; } throw http_errors_1 . default ( 415 , ` ${ encoding } ` ) ; }
Return a decompressed stream, given an encoding.
Return a decompressed stream given an encoding .