Registry / web-framework / valyala-fasthttp

valyala-fasthttp

JSON →
library1.71.0gogounverified

Package fasthttp provides a fast HTTP server and client API.

go get github.com/valyala/fasthttp
INSTALL
IMPORT
SIG · VALYALA-FASTHTTP
V
valyala-fasthttp
web-frameworkgov1.71.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

fasthttp
github.com/valyala/fasthttp

Start a simple HTTP server that responds with 'Hello, world!'

package main import ( "fmt" "github.com/valyala/fasthttp" ) func main() { if err := fasthttp.ListenAndServe(":8080", func(ctx *fasthttp.RequestCtx) { fmt.Fprintf(ctx, "Hello, world!") }); err != nil { panic(err) } }
Debug
Known issues
gotchafasthttp's API differs significantly from net/http; context and handler signatures are incompatible.
fix
Use fasthttp.RequestCtx instead of http.ResponseWriter and *http.Request.
affects: *
Upgrade
Version history
1.71.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
40 hits · last 30 days
node
34
OpenAI (training)
1
Resources
valyala-fasthttp — go get valyala-fasthttp · libregistry