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

feat: add brotli plugin #10515

Merged
merged 35 commits into from
Dec 8, 2023
Merged

feat: add brotli plugin #10515

merged 35 commits into from
Dec 8, 2023

Conversation

yuweizzz
Copy link
Contributor

@yuweizzz yuweizzz commented Nov 17, 2023

Description

add brotli plugin. fixes #9645

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@moonming
Copy link
Member

@yuweizzz great work 👍
Can you explain the usage scenarios of this plug-in? It would be better if there is documentation

@yuweizzz
Copy link
Contributor Author

sure, I will add a documentation about it.

@monkeyDluffy6017
Copy link
Contributor

Nice work! Could you make the ci pass?

@monkeyDluffy6017 monkeyDluffy6017 added the wait for update wait for the author's response in this issue/PR label Nov 21, 2023
@yuweizzz
Copy link
Contributor Author

I don't know why it couldn't work in redhat series, need some time to figure it out.

@monkeyDluffy6017 monkeyDluffy6017 added the wait for update wait for the author's response in this issue/PR label Dec 5, 2023
@monkeyDluffy6017
Copy link
Contributor

please make the ci pass

@monkeyDluffy6017 monkeyDluffy6017 added approved and removed wait for update wait for the author's response in this issue/PR labels Dec 7, 2023
apisix/plugins/brotli.lua Show resolved Hide resolved

local types = conf.types
local content_type = ngx_header["Content-Type"]
if not content_type then
Copy link
Contributor

Choose a reason for hiding this comment

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

how about checking content-type before check_accept_encoding?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we should check accept encoding first, if request not allow this encoding, we don't need to check our conf.

apisix/plugins/brotli.lua Show resolved Hide resolved
apisix/plugins/brotli.lua Show resolved Hide resolved
@monkeyDluffy6017 monkeyDluffy6017 merged commit 7dbabf9 into apache:master Dec 8, 2023
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: will apisix support brotil compression algorithm
6 participants