Documentation ¶
Index ¶
- func ASCIIDoc(ctx *fasthttp.RequestCtx) bool
- func File(ctx *fasthttp.RequestCtx) bool
- func HTTPLog(ctx *fasthttp.RequestCtx) bool
- func HandleMiddlewares(ms []Middleware) func(ctx *fasthttp.RequestCtx)
- func MarkDown(ctx *fasthttp.RequestCtx) bool
- func Safe(ctx *fasthttp.RequestCtx) bool
- type Middleware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ASCIIDoc ¶
func ASCIIDoc(ctx *fasthttp.RequestCtx) bool
ASCIIDoc is a Middleware handler to catch AsciiDoc files
func HandleMiddlewares ¶
func HandleMiddlewares(ms []Middleware) func(ctx *fasthttp.RequestCtx)
HandleMiddlewares returns a pure fasthttp handler that simply goes through every middleware in order
func MarkDown ¶
func MarkDown(ctx *fasthttp.RequestCtx) bool
MarkDown is a Middleware handler to catch MarkDown files
func Safe ¶
func Safe(ctx *fasthttp.RequestCtx) bool
Safe refuses to continue if the path is deemed unsafe
Types ¶
type Middleware ¶
type Middleware func(ctx *fasthttp.RequestCtx) bool
Middleware is a function that takes a RequestCtx and returns a Bool (continue or not)
Click to show internal directories.
Click to hide internal directories.