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

Examples for HTTP and gRPC compression #1342

Merged
merged 2 commits into from
Feb 2, 2021
Merged

Examples for HTTP and gRPC compression #1342

merged 2 commits into from
Feb 2, 2021

Conversation

bondolo
Copy link
Contributor

@bondolo bondolo commented Jan 29, 2021

Motivation:
Provide an example demonstrating use of the content encoding compression features.

Modifications:

  • A new HTTP example, Compression
  • Additional documentation

Result:
No further need to reference test code to understand how to use compression features.

@bondolo bondolo requested a review from tkountis January 29, 2021 22:42
@bondolo bondolo self-assigned this Jan 29, 2021
@bondolo
Copy link
Contributor Author

bondolo commented Jan 29, 2021

Hmmm, I had intended to propose these as separate PRs. Oh well, they are fine together.

Both HTTP and gRPC examples are now included in the PR.

Copy link
Member

@idelpivnitskiy idelpivnitskiy left a comment

Choose a reason for hiding this comment

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

Great work @bondolo!
Can you please update PR title and description to account for gRPC examples as well?

@bondolo bondolo changed the title Provide example of HTTP content encoding compression filter Provide examples of HTTP content encoding compression filter for HTTP and gRPC APIs Jan 30, 2021
Copy link
Contributor

@tkountis tkountis left a comment

Choose a reason for hiding this comment

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

Good work @bondolo, I left some comments. I would consider also printing out the response header of the server, to demonstrate compression selection.

Motivation:
Provide an example demonstrating use of the content encoding compression features.

Modifications:
- A new HTTP example, Compression
- Additional documentation

Result:
No further need to reference test code to understand how to use compression features.
@bondolo bondolo force-pushed the main branch 2 times, most recently from 9408dc3 to 8b3962b Compare February 1, 2021 21:29
Copy link
Member

@idelpivnitskiy idelpivnitskiy left a comment

Choose a reason for hiding this comment

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

Great! Hope it will help users to start with using compression in ST 🎉
LGTM after the unused constant is removed:

@idelpivnitskiy idelpivnitskiy changed the title Provide examples of HTTP content encoding compression filter for HTTP and gRPC APIs Examples for HTTP and gRPC compression Feb 2, 2021
Motivation:
Provide an example demonstrating use of the content encoding compression features.

Modifications:
- A new gRPC example, Compression
- Additional documentation

Result:
No further need to reference test code to understand how to use compression features.
@bondolo bondolo merged commit 0c99a3e into apple:main Feb 2, 2021
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.

3 participants