Skip to content

如何在 中间件 中提取 request body,并记录到日志中? #960

Answered by chrislearn
shenghui0779 asked this question in Q&A
Discussion options

You must be logged in to vote

那你就 take_body 再通过 req.body_mut() 塞回去。

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@chrislearn
Comment options

Answer selected by shenghui0779
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants