fasthttp icon indicating copy to clipboard operation
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

Results 152 fasthttp issues
Sort by recently updated
recently updated
newest added

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...

feature request

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...

help wanted

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...

question

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...

help wanted

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)...

help wanted
question

Hi ! It's possible to get multiple headers with the same name without parsing all headers in requestHeader struct (without using visitAll function) ?

enhancement
help wanted

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: ![image](https://user-images.githubusercontent.com/12763626/190019770-e5ba1489-4799-422a-a518-3c5d4c3e28e3.png) After unsafe conversion: ![image](https://user-images.githubusercontent.com/12763626/190019683-10bcccfe-310d-4e02-b757-2d7a091ef021.png)