Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

hoop的调用顺序是不是决定了中间件的执行顺序 #795

Closed
xmh0511 opened this issue May 30, 2024 · 1 comment
Closed

hoop的调用顺序是不是决定了中间件的执行顺序 #795

xmh0511 opened this issue May 30, 2024 · 1 comment

Comments

@xmh0511
Copy link

xmh0511 commented May 30, 2024

Router::with_path("hello").hoop(A).hoop(B).get(hello);

在执行hello之前,中间件被执行的顺序是不是先AB呢?这个行为没有在文档里面标出来

@chrislearn
Copy link
Member

是的

@salvo-rs salvo-rs locked and limited conversation to collaborators Jun 5, 2024
@chrislearn chrislearn converted this issue into discussion #804 Jun 5, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants