xanderbailey opened a new pull request, #3805:
URL: https://github.com/apache/iceberg-rust/pull/3805

   ## Which issue does this PR close?
   
   No existing issue.
   
   ## What changes are included in this PR?
   
   Enables reqwest's `gzip` feature for `iceberg-catalog-rest`. The default 
client then sends `Accept-Encoding: gzip` and transparently decompresses gzip 
responses.
   
   Table metadata is JSON and compresses well (5–7x for the 
`LoadTableResponse`s I measured), so loading tables with large metadata moves 
far fewer bytes. Servers that don't compress are unaffected. Iceberg's Java 
REST client already negotiates gzip through Apache HttpClient's defaults, and 
the REST catalog test fixture server gzips its responses.
   
   Cargo unifies features, so other reqwest clients in the same binary will 
also accept gzip by default.
   
   ## Are these changes tested?
   
   Yes. `test_list_namespace_with_gzip_response` serves a gzipped body from a 
mock that only matches requests sending `Accept-Encoding: gzip`; it fails 
without the feature.
   
   ## AI Disclosure
   
   Drafted with Claude Code (change, test and this description). Tests, clippy, 
rustfmt and taplo were run locally.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to