Compression
Orb supports automatic decompression of responses encoded with gzip, deflate, Brotli, and Zstandard.
Automatic Decompression
Section titled “Automatic Decompression”Use --compressed to accept and automatically decompress compressed responses:
orb --compressed https://example.comThis sends the header:
Accept-Encoding: zstd, br, gzip, deflateThe server may respond with a compressed body, which orb automatically decompresses before output.
Specific Compression Algorithm
Section titled “Specific Compression Algorithm”Use --compress-algo to request a specific algorithm:
orb --compress-algo gzip https://example.comAvailable algorithms:
gzip- Most widely supporteddeflate- Legacy, widely supportedbrotli/br- Better compression, good supportzstd- Best compression, growing support
How Decompression Works
Section titled “How Decompression Works”- Orb sends
Accept-Encodingheader with supported algorithms - Server may respond with
Content-Encodingheader - Orb checks the header and decompresses accordingly
- Decompressed content is written to output
# Request with verbose to see headersorb -v --compressed https://example.com> Accept-Encoding: zstd, br, gzip, deflate< Content-Encoding: gzip