fasthttp
fasthttp copied to clipboard
Fast HTTP package for Go. Tuned for high performance. Zero memory allocations in hot paths. Up to 10x faster than net/http
If HTTP Client Request has following features it would be great: - Retry on Timeout, Connection Closed or No Connection available - Backoff and wait till pending request are processed...
i learned code below。 ``` func (req *Request) Read(r *bufio.Reader) error { return req.ReadLimitBody(r, 0) } ``` param r is io buf reader which could be a connection or something...
Hi @valyala @erikdubbelboer @kirillDanshin I am wondering whether we ought to migrate `fasthttp` into an organization, `fasthttp` is widely used and it is definitely going to thrive, so I think...
For what it worth, I feel it would be useful to provide use case and wiki so that anyone can get confident about using FastHTTP for their project? Wiki can...
As of now the only way to override `Host` header is to use `HostClient` as per [Issue 318](https://github.com/valyala/fasthttp/issues/318). This means we have to manage reusing/cleanup of HostClients ourselves which [fasthttp.Client](https://github.com/valyala/fasthttp/blob/master/client.go#L450-L452)...
Hi ! It's possible to get multiple headers with the same name without parsing all headers in requestHeader struct (without using visitAll function) ?
Add "GetString" method for Args
This PR updates the `golang.org/x/net` dependency to resolve CVE-2022-27664. [Trivy](https://github.com/aquasecurity/trivy) scan showing this vulnerability `trivy fs --ignore-unfixed --severity CRITICAL,HIGH .`: ``` go.mod (gomod) Total: 2 (HIGH: 2, CRITICAL: 0) ┌─────────────────────┬────────────────┬──────────┬───────────────────────────────────┬───────────────────────────────────┬─────────────────────────────────────────────────────────────┐...
I changed the code to prevent string allocation by using unsafe conversion. I wrote a benchmark test against changes. Before:  After unsafe conversion: 