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 filter RedirectorV2 #1116

Merged
merged 1 commit into from
Oct 31, 2023
Merged

Add filter RedirectorV2 #1116

merged 1 commit into from
Oct 31, 2023

Conversation

xxx7xxxx
Copy link
Contributor

There's another feature left, which is ReplacePrefixMatch. Because there's no natural way to get the matching prefix in the router. So in the filter RedirectorV2 there's no way to get the real matching path prefix. It would be an intermediate change to httpserver/mux to do it. So let's hold it for the time being.

@codecov-commenter
Copy link

Codecov Report

Attention: 33 lines in your changes are missing coverage. Please review.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Files Coverage Δ
pkg/filters/redirectorv2/redirectorv2.go 66.66% <66.66%> (ø)

... and 1 file with indirect coverage changes

📢 Thoughts on this report? Let us know!.

@suchen-sci
Copy link
Contributor

It may be a little tricky. HTTPServer and Pipeline communicate with each other through Context. So we may add some specially data on Context? For example, some HTTPServer information like path prefix or path regexp etc.

@xxx7xxxx
Copy link
Contributor Author

Sure I'm doing right that, will propose it in next PR.

@xxx7xxxx xxx7xxxx added this pull request to the merge queue Oct 31, 2023
Merged via the queue into easegress-io:main with commit 378b7e8 Oct 31, 2023
8 checks passed
@xxx7xxxx xxx7xxxx deleted the redirectorv2 branch November 1, 2023 08:16
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.

None yet

3 participants