(encoding: Encoding)
| 685 | type Encoding = 'gzip' | 'deflate' | 'br' | 'identity'; |
| 686 | |
| 687 | function getEncoder(encoding: Encoding): TransformObject | null { |
| 688 | switch (encoding) { |
| 689 | case 'gzip': return createGzipCompressTransform(); |
| 690 | case 'deflate': return createDeflateTransform(); |
| 691 | case 'br': return createBrotliCompressTransform(); |
| 692 | case 'identity': return null; |
| 693 | } |
| 694 | } |
| 695 | |
| 696 | function getDecoder(encoding: Encoding): TransformObject | null { |
| 697 | switch (encoding) { |
no test coverage detected