Registry /
web-framework / adhityaramadhanus-fasthttpcors
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.