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 content::AcceptEncoding. #232

Merged
merged 17 commits into from
Sep 19, 2020
Merged

Add content::AcceptEncoding. #232

merged 17 commits into from
Sep 19, 2020

Conversation

yoshuawuyts
Copy link
Member

Supersedes #230, ref #99. Adds support for Content-Encoding, Accept-Encoding and content negotiation to select the right encoding.

The approach in this patch can likely be adapted to work for TE, Accept-Language and Accept-Charset as well.

Screenshot

Screenshot_2020-08-23 http_types content AcceptEncoding - Rust

src/content/accept_encoding.rs Show resolved Hide resolved
src/content/content_encoding.rs Show resolved Hide resolved
src/content/content_encoding.rs Outdated Show resolved Hide resolved
src/content/accept_encoding.rs Outdated Show resolved Hide resolved
src/content/accept_encoding.rs Outdated Show resolved Hide resolved
Copy link
Member

@Fishrock123 Fishrock123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some more comments.

This is stuff I came across while making a wip swap to this for tide-compress which is at Fishrock123/tide-compress@dff0747

src/content/content_encoding.rs Outdated Show resolved Hide resolved
src/content/content_encoding.rs Outdated Show resolved Hide resolved
src/content/content_encoding.rs Outdated Show resolved Hide resolved
src/content/content_encoding.rs Show resolved Hide resolved
src/content/encoding.rs Show resolved Hide resolved
@yoshuawuyts yoshuawuyts dismissed Fishrock123’s stale review September 19, 2020 21:56

Applied all feedback from review!

@yoshuawuyts yoshuawuyts merged commit 9259a12 into main Sep 19, 2020
@delete-merged-branch delete-merged-branch bot deleted the accept-encoding branch September 19, 2020 22:00
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