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

[Promotion]Profile usage of anchor middleware #33

Open
fwhezfwhez opened this issue Jun 29, 2020 · 0 comments
Open

[Promotion]Profile usage of anchor middleware #33

fwhezfwhez opened this issue Jun 29, 2020 · 0 comments
Labels
enhancement New feature or request promotion profile existing feature and provide better practise

Comments

@fwhezfwhez
Copy link
Owner

fwhezfwhez commented Jun 29, 2020

Hello, TCPX now provides well practice on anchor middleware, which now can get called without times limit.
In the old version, operation below is not allowed:

srv.Use("middle1", middle1)
srv.AddHandler()
srv.UnUse("middle1")

srv.Use("middle1")
...
srv.UnUse("middle1")

Because the same middleware cant't use twice.

Now it's promoted and you can use it well like:

srv.Use("middle1", middle1)
srv.AddHandler()
srv.UnUse("middle1")

srv.Use("middle1")
srv.AddHandler()
srv.AddHandler()
srv.UnUse("middle1")

This promotion is linked below

@fwhezfwhez fwhezfwhez added enhancement New feature or request promotion profile existing feature and provide better practise labels Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request promotion profile existing feature and provide better practise
Projects
None yet
Development

No branches or pull requests

1 participant