Documentation
¶
Index ¶
Constants ¶
View Source
const ( EngineAWSLambda = "awslambda" EngineNetHTTP = "nethttp" EngineFastHTTP = "fasthttp" )
Variables ¶
This section is empty.
Functions ¶
func HandleTestFastHTTP ¶
func HandleTestFastHTTP(ctx *fasthttp.RequestCtx)
func HandleTestNetHTTP ¶
func HandleTestNetHTTP(res http.ResponseWriter, req *http.Request)
func Serve ¶
func Serve(svc SimpleServer)
Types ¶
type Handler ¶
type Handler interface { HandleNetHTTP(res http.ResponseWriter, req *http.Request) HandleFastHTTP(ctx *fasthttp.RequestCtx) HandleAnyHTTP(aRes anyhttp.Response, aReq anyhttp.Request) }
type SimpleServer ¶
Click to show internal directories.
Click to hide internal directories.