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

Add a middleware layer to the nym api allowing for data compression #5451

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

jmwample
Copy link
Contributor

@jmwample jmwample commented Feb 11, 2025

The changes in this PR are based on theory and documentation for axum and tower-http. I have not actually been able to test that this work with an accept-encoding header to compress data in a response yet.

After Testing in a minimal example, this does work as expected. Routes still default to plain encoding, however if a client indicates support for a compressed encoding using the Accept-Encoding header then the served response will be compressed with the appropriate Content-Encoding header. (Proof-of-Concept)

This change is Reviewable

@jmwample jmwample added this to the Dorina milestone Feb 11, 2025
Copy link

vercel bot commented Feb 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-nextra ⬜️ Ignored (Inspect) Visit Preview Feb 12, 2025 5:33pm
nym-next-explorer ⬜️ Ignored (Inspect) Visit Preview Feb 12, 2025 5:33pm

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

Successfully merging this pull request may close these issues.

2 participants