Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Enable gzip compressed payload #222

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mobilemarines
Copy link

Hello,

Let me explain, we had the need to send a gzip compressed payload to our Backend. Before the switch to this plugin we used the angular http client and transmitted our gzipped payload in an ArrayBuffer Object. But unfortunately this object was emptied by the JSBridge (see: ionic-team/capacitor#2273).

We wanted to keep the Backend Code, so we decided to adjust the Plugin to archive the same outcome.

Please tell us if it needs some improvement or if we can support. All libraries used are MIT licensed.

Enable gzip compression of body payload

gzip init

logs

gzip flag

fix headers

refactoring

improved casting

Gzip compression for web (pako)

Gzip compression fix of headers
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants