13 lines
202 B
Go
13 lines
202 B
Go
package main
|
|
|
|
import (
|
|
"github.com/valyala/fasthttp"
|
|
)
|
|
|
|
func main() {
|
|
fasthttp.ListenAndServe("127.0.0.1:4001", handler)
|
|
}
|
|
|
|
func handler(ctx *fasthttp.RequestCtx) {
|
|
ctx.Response.SetStatusCode(200)
|
|
}
|