Skip to content

feat: add brotli plugin#10515

Merged
juststillthinking merged 35 commits into
apache:masterfrom
yuweizzz:brotli
Dec 8, 2023
Merged

feat: add brotli plugin#10515
juststillthinking merged 35 commits into
apache:masterfrom
yuweizzz:brotli

Conversation

@yuweizzz

@yuweizzz yuweizzz commented Nov 17, 2023

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor Author

sure, I will add a documentation about it.

@juststillthinking

Copy link
Copy Markdown
Contributor

Nice work! Could you make the ci pass?

@juststillthinking juststillthinking added the wait for update wait for the author's response in this issue/PR label Nov 21, 2023
@yuweizzz

Copy link
Copy Markdown
Contributor Author

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

Comment thread apisix/plugins/brotli.lua Outdated
Comment thread apisix/plugins/brotli.lua Outdated
Comment thread docs/en/latest/plugins/brotli.md Outdated
Comment thread docs/en/latest/plugins/brotli.md Outdated
@juststillthinking juststillthinking added the wait for update wait for the author's response in this issue/PR label Dec 5, 2023
@juststillthinking

Copy link
Copy Markdown
Contributor

please make the ci pass

Comment thread .github/workflows/fuzzing-ci.yaml
@juststillthinking juststillthinking added approved and removed wait for update wait for the author's response in this issue/PR labels Dec 7, 2023
Comment thread apisix/plugins/brotli.lua
Comment thread apisix/plugins/brotli.lua

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

Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread apisix/plugins/brotli.lua
Comment thread apisix/plugins/brotli.lua
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.

feat: will apisix support brotil compression algorithm

6 participants