View definition

func Serve(ln Listener, handler RequestHandler) error

Defined in github.com/valyala/fasthttp/server.go

Description

Serve serves incoming connections from the given listener using the given handler.

Serve blocks until the given listener returns permanent error.