Skip to content

examples: add brotli - #16873

Merged
phlax merged 4 commits into
envoyproxy:mainfrom
daixiang0:brotli
Jun 11, 2021
Merged

phlax merged 4 commits into
envoyproxy:mainfrom
daixiang0:brotli

Conversation

@daixiang0

Copy link
Copy Markdown
Member

Signed-off-by: Long Dai [email protected]

Commit Message:

Add brotli example.

Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue] Fixes #16747
[Optional Deprecated:]
[Optional API Considerations:]

@phlax phlax self-assigned this Jun 8, 2021
@phlax
phlax marked this pull request as draft June 8, 2021 12:06
@phlax

phlax commented Jun 8, 2021

Copy link
Copy Markdown
Member

@daixiang0 ive marked this as draft as there are quite a few fairly obvious problems with it - and ci is broke

please mark as "ready for review" when you have fixed ci and done a thorough review yourself

@rojkov rojkov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice!

Also it could be useful to mention that having two generic compressor filters in one filter chain with different compressor libraries, but otherwise identical, is a possibility too (to serve requests like Accept-Encoding: gzip;q=0.5, br).

Comment thread docs/root/start/sandboxes/brotli.rst Resolved
Comment thread docs/root/start/sandboxes/brotli.rst Resolved
Comment thread docs/root/start/sandboxes/brotli.rst Resolved
Comment thread docs/root/start/sandboxes/brotli.rst Resolved
Comment thread docs/root/start/sandboxes/brotli.rst Outdated
Comment on lines 66 to 65

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hmm... in hindsight this doesn't look like a good idea after all. The example config contains only one compression filter per filter chain and mentioning gzip in this context may confuse readers. Better drop these lines.

Requests with Accept-Encoding: gzip;q=0.5, br could be illustrative for setups featuring more than one compression filter in a filter chain.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

these examples should be as simple as possible and provide an isolated setup that is exemplary of what is being shown

i think in this case we just want the br accept-encoding header

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Remove them.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

sorry for force push :(

daixiang0 added 2 commits June 9, 2021 19:34
Signed-off-by: Long Dai <[email protected]>
Signed-off-by: Long Dai <[email protected]>
Signed-off-by: Long Dai <[email protected]>
@daixiang0
daixiang0 marked this pull request as ready for review June 10, 2021 08:49
@phlax

phlax commented Jun 10, 2021

Copy link
Copy Markdown
Member

@phlax phlax left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One small nit - otherwise lgtm

Really nice work - thankyou very much @daixiang0

Comment thread docs/root/start/sandboxes/brotli.rst Resolved
@phlax

phlax commented Jun 10, 2021

Copy link
Copy Markdown
Member

/wait

Signed-off-by: Long Dai <[email protected]>

@phlax phlax left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm, thanks @daixiang0

@phlax
phlax merged commit 6aca59f into envoyproxy:main Jun 11, 2021
@daixiang0
daixiang0 deleted the brotli branch June 11, 2021 08:35
leyao-daily pushed a commit to leyao-daily/envoy that referenced this pull request Sep 30, 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.

Add brotli sandbox example

3 participants