Support gzip in folly/io:compression
authorLovro Puzar <lovro@fb.com>
Tue, 15 Dec 2015 16:13:53 +0000 (08:13 -0800)
committerfacebook-github-bot-4 <folly-bot@fb.com>
Tue, 15 Dec 2015 17:20:25 +0000 (09:20 -0800)
commitf05cdbc13d3b553b5ce79c0bfa28317462f80f19
tree47c8c060ef1c5f87dbd0835adb91a20b3ec90a4d
parentfbb8a926d8cc510a3ad870b96e1bd38b510034fd
Support gzip in folly/io:compression

Summary: gzip files can be easier to work with operationally than raw zlib thanks to gzip+gunzip.  zlib supports adding/stripping the gzip header; expose that through a new CodecType.

Reviewed By: chipturner

Differential Revision: D2759554

fb-gh-sync-id: 67e0f5f88e087d363db1c349cabb909fb3f00417
folly/io/Compression.cpp
folly/io/Compression.h
folly/io/test/CompressionTest.cpp