cloudwego / hertz

Go HTTP framework with high-performance and strong-extensibility for building micro-services.
https://www.cloudwego.io
Apache License 2.0
5.28k stars 515 forks source link

Why are the parameters of the handler two contexts? #1186

Closed liov closed 1 month ago

liov commented 1 month ago

Why are the parameters of the handler two contexts, which are included in other frameworks including the standard library? What are the considerations in this design?

GuangmingLuo commented 1 month ago

@liov take a look at the doc: https://www.cloudwego.io/docs/hertz/tutorials/basic-feature/context/

github-actions[bot] commented 1 month ago

This issue has been marked as invalid question, please give more information by following the issue template. The issue will be closed in 1 days if no further activity occurs.