hertz-examples
hertz-examples copied to clipboard
Examples for Hertz.
#### What type of PR is this? fix #### What this PR does / why we need it (English/Chinese): #### Which issue(s) this PR fixes: zh: 修复无法使用 reverseproxy tls server...
set so_reuseaddr for client in reverse proxy mode so uses 1 connection to interface with server. the server side will save on fd with 1 connection
possible to provide webtransport example?
possible to do a rate limit example in terms of bandwidth? e.g. rate limited by 100kb/second couldnt find a rate limiter by req/s by the way but that's "fine". hope...
**Is your feature request related to a problem? Please describe.** - We need a github data analytics project to help us present the community's data,the need for customisation is greater,...
#### What type of PR is this? feat #### What this PR does / why we need it (English/Chinese): https://github.com/cloudwego/hertz/issues/486#issuecomment-1408335901 #### Which issue(s) this PR fixes: https://github.com/cloudwego/hertz/issues/486#issuecomment-1408335901
#### What type of PR is this? #### What this PR does / why we need it (English/Chinese): #### Which issue(s) this PR fixes: https://github.com/cloudwego/cloudwego.github.io/issues/1111
#### What type of PR is this? fix #### What this PR does / why we need it (English/Chinese): zh: 修复switch误用 en: Fix switch misuse #### Which issue(s) this PR...
In the example:middleware/csrf/custom_errorfunc/main.go,the function myErrFunc does not implement what the author wants. https://github.com/cloudwego/hertz-examples/blob/231bdf80c234de47a79b312326a8dd6a0e74de2b/middleware/csrf/custom_errorfunc/main.go#L32-L40 https://github.com/cloudwego/hertz-examples/blob/231bdf80c234de47a79b312326a8dd6a0e74de2b/middleware/csrf/custom_errorfunc/main.go#L42-L54 The switch statement can't be used for error handling in this way, which may be misleading...
**Is your feature request related to a problem? Please describe.** An example about how to embed static web resources in hertz. **Describe the solution you'd like** I'm going to add...