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
Hi @valyala , hope you are safe. I managed to gather a team and we are currently working on [this project](https://helprefugees.eu). I've written the backend using [fiber](https://github.com/gofiber/fiber), which everyone knows...
Hi, Being new to Go lang, it would be much appreciated if this library had more examples of using HTTP client in a right way. The only way I've found...
Simple example code: ``` func main() { go func() { http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { json.NewEncoder(w).Encode("Hello, world!\n\n") }) http.ListenAndServe(":7000", nil) }() fasthttp.ListenAndServe(":8080", func(ctx *fasthttp.RequestCtx) { fmt.Fprintf(ctx, "Hello, world!\n\n") })...
huge reponse break the fasthttp reverse proxy.... * I will goto net/http. This problem can not be config right now... * huge request is not a problem for reverse proxy....
The [net.Buffers](https://pkg.go.dev/net#Buffers) internally uses [writev](https://en.wikipedia.org/wiki/Vectored_I/O) syscall so we can write multiple chunks without concatenation in buffer. This significantly improves performance and I wondered why fasthttp doesn't use it.
Hello, While using fasthttp.Client to talk to a server that produce chunked response with trailer headers I see "cannot find crlf at the end of chunk" error. I suspects that...
For example, I want to stop downloading content if it has wrong mime type. How can I do so? The documentation shows only ```resp.Body()``` which gets whole response. Below is...
Hi, I've come across this issue when dealing with large files and slow clients. When using the example code below: ``` case "/test": { ctx.SetBodyStreamWriter(func(w *bufio.Writer) { for i :=...
Hi, we want to enable open telemetry in fasthttp. Actually we started to write a helper library, somehow we can support tracing for the requests written like below: ``` func...