google / fhir-app-examples

Contains examples of how Open Health Stack components can be used together as the foundation for FHIR based digital health solutions
https://developers.google.com/open-health-stack
Apache License 2.0
51 stars 26 forks source link

Supporting gzipped data transfer between client and server #23

Open anchita-g opened 1 year ago

anchita-g commented 1 year ago
anchita-g commented 1 year ago

Update: Android FHIR SDK uses OkHttp client which performs transparent gzip. It sends the required Accept-Encoding header with value gzip by default unless asked otherwise. If the server supports the encoding, it can response back with the respective header i.e. Content-Encoding = gzip. So there is no explicit support that is required to support gzip in Android FHIR SDK.

anchita-g commented 1 year ago

Update: As for FHIR Information Gateway, it does not allow relaying the Accept-Encoding header to the FHIR resource server. I have filed an issue to support gzip as an encoding.