Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve gzip interface to match EF compression=gzip option #19

Open
sfc-gh-afedorov opened this issue Jun 14, 2021 · 0 comments
Open

Improve gzip interface to match EF compression=gzip option #19

sfc-gh-afedorov opened this issue Jun 14, 2021 · 0 comments

Comments

@sfc-gh-afedorov
Copy link
Collaborator

EF's now have a compression option which can be used to ungzip the payload from the server, but only if it matches the interface —

    return {
        'statusCode': status_code,
        'body': base64.b64encode(gzip.compress(json.dumps(body).encode())).decode(),
        'isBase64Encoded': True,
        'headers': headers
    }

We should support this interface, test, and update the unit tests to make sure this works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant