Documentation ¶
Index ¶
- func Bytes2str(b []byte) string
- func Chain(handler fasthttp.RequestHandler, middlewares ...Middleware) fasthttp.RequestHandler
- func DefaultHandler(ctx *fasthttp.RequestCtx)
- func Etag(handler fasthttp.RequestHandler) fasthttp.RequestHandler
- func Handle(path string, handler fasthttp.RequestHandler)
- func HandleNotFound(handler fasthttp.RequestHandler)
- func ServeFasthttp(addr string, handler fasthttp.RequestHandler)
- func Str2bytes(s string) []byte
- type Middleware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Chain ¶
func Chain(handler fasthttp.RequestHandler, middlewares ...Middleware) fasthttp.RequestHandler
func DefaultHandler ¶
func DefaultHandler(ctx *fasthttp.RequestCtx)
func Etag ¶
func Etag(handler fasthttp.RequestHandler) fasthttp.RequestHandler
func Handle ¶
func Handle(path string, handler fasthttp.RequestHandler)
func HandleNotFound ¶
func HandleNotFound(handler fasthttp.RequestHandler)
func ServeFasthttp ¶
func ServeFasthttp(addr string, handler fasthttp.RequestHandler)
Types ¶
type Middleware ¶
type Middleware func(handler fasthttp.RequestHandler) fasthttp.RequestHandler
Click to show internal directories.
Click to hide internal directories.