Request decompression

It's received by the server (erpc) as a gzipped request and erpc decompresses it and passes it to the upstream servers.  We're currently offering this for some of our customers via a lua script in openresty.  The benefit to our customer is it helps them save egress costs when running in clouds that charge egress fees.  Would love it if this was something erpc could support.

For example:

echo '{
  "jsonrpc":"2.0",
  "method":"eth_chainId",
  "params":[],
  "id":1
}' | gzip | curl -i --request POST \
  --url http://localhost:4000 \
  --header 'Content-Type: application/json' \
  --header 'Content-Encoding: gzip' \
  --compressed \
  --data-binary @-

Please authenticate to join the conversation.

Upvoters
Status

Completed

Board

💡 eRPC

Date

Over 1 year ago

Author

Caleb Call

Subscribe to post

Get notified by email when there are changes.