hertz
hertz copied to clipboard
Go HTTP framework with high-performance and strong-extensibility for building micro-services.
```go package main import ( "context" "github.com/cloudwego/hertz/pkg/app" "github.com/cloudwego/hertz/pkg/app/server" "github.com/cloudwego/hertz/pkg/common/hlog" "github.com/cloudwego/hertz/pkg/common/utils" "github.com/cloudwego/hertz/pkg/protocol/consts" ) // Cannot catch `engine.go:410: [Error] HERTZ: Error=body size exceeds the given limit, remoteAddr=` func CatchOverBodySize() app.HandlerFunc { return...
## Is your feature request related to a problem? Please describe. ### en At present, it is difficult for us to directly use hlog in business scenarios. First of all...
**Is your feature request related to a problem? Please describe.** is it possible to make [HeaderScanner](https://github.com/cloudwego/hertz/blob/develop/pkg/protocol/http1/ext/headerscanner.go#L53) and [HeaderValueScanner](https://github.com/cloudwego/hertz/blob/develop/pkg/protocol/http1/ext/headerscanner.go#L75) pooled ?
**Is your feature request related to a problem? Please describe.** will hertz support support chunk-extension? [chunk-extension rfc](https://www.rfc-editor.org/rfc/rfc9112#name-chunk-extensions) **Additional context** now hertz [parseChunkSize](https://github.com/cloudwego/hertz/blob/develop/pkg/common/utils/chunk.go#L45) skip the whitespace and check the '\r',
#### What type of PR is this? #### Check the PR title. - [x] This PR title match the format: \(optional scope): \ - [x] The description of this PR...
#### What type of PR is this? fix #### Check the PR title. - [ ] This PR title match the format: \(optional scope): \ - [ ] The description...
#### What type of PR is this? fix #### Check the PR title. - [x] This PR title match the format: \(optional scope): \ - [x] The description of this...
I have some static files that need to be downloaded, such as `*.js` or `*.html`, and I want to embed them in the go binary with StaticFS to simplify my...
**Describe the bug** refer to fasthttp https://github.com/valyala/fasthttp/pull/1019 and https://github.com/valyala/fasthttp/pull/1022
## Is your feature request related to a problem? Please describe. - Elegantly support cache ## Additional context refer to: - https://github.com/gin-contrib/cache - https://github.com/gofiber/fiber/tree/master/middleware/cache