Registry / web-framework / adhityaramadhanus-fasthttpcors

adhityaramadhanus-fasthttpcors

JSON →
library0.0.0-20170121111917-d4c07198763agogounverified

Package fasthttpcors provides CORS middleware for the fasthttp HTTP library.

go get github.com/AdhityaRamadhanus/fasthttpcors
INSTALL
IMPORT
SIG · ADHITYARAMADHANUS-
A
adhityaramadhanus-fasthttpcors
web-frameworkgov0.0.0-20170121111917-d4c07198763a
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.

fasthttpcors
github.com/AdhityaRamadhanus/fasthttpcors

Wrap a fasthttp handler with default CORS settings.

package main import ( "github.com/AdhityaRamadhanus/fasthttpcors" "github.com/valyala/fasthttp" ) func main() { handler := fasthttpcors.Default().Handler(func(ctx *fasthttp.RequestCtx) { ctx.WriteString("Hello") }) fasthttp.ListenAndServe(":8080", handler) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20170121111917-d4c07198763alatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
22
OpenAI (training)
2
Amazon
1
Resources
adhityaramadhanus-fasthttpcors — go get adhityaramadhanus-fasthttpcors · libregistry