package
0.8.2
Repository: https://github.com/wallarm/api-firewall.git
Documentation: pkg.go.dev

# Functions

AllURLParams returns the map of the url parameters from a fasthttp.Request object.
NewMux returns a newly initialized Mux object that implements the Router interface.
NewRouteContext returns a new routing Context object.
NewRouter returns a new Mux object that implements the Router interface.
RegisterMethod adds support for custom HTTP method handlers, available via Router#Method and Router#MethodFunc.
RouteContext returns chi's routing Context object from a http.Request Context.
URLParam returns the url parameter from a fasthttp.Request object.
Walk walks any router tree that implements Routes interface.

# Variables

RouteCtxKey is the context.Context key to store the request context.

# Structs

Context is the default routing context set on the root node of a request context to track route patterns, URL parameters and an optional routing path.
Mux is a simple fastHTTP route multiplexer that parses a request path, records any URL params, and searched for the appropriate web.Handler.
Route describes the details of a routing handler.
RouteParams is a structure to track URL routing parameters efficiently.

# Interfaces

Router consisting of the core routing methods used by chi's Mux, using only the standard net/http.
Routes interface adds two methods for router traversal, which is also used by the `docgen` subpackage to generation documentation for Routers.

# Type aliases

A Handler is a type that handles an http request within our own little mini framework.
WalkFunc is the type of the function called for each method and route visited by Walk.