Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
Route represents a route settings that can be used to match requested URLs.
type Routes ¶
type Routes struct {
// contains filtered or unexported fields
}
Routes represents a list of routes that can be used to match requested URLs.
func (Routes) CachedRoute ¶
func (rs Routes) CachedRoute(method, path []byte) *RoutesResult
CachedRoute provides Read-Through caching for rs.Route if the cache is enabled.
func (Routes) CachedRouteCtx ¶
func (rs Routes) CachedRouteCtx(ctx *fasthttp.RequestCtx) *RoutesResult
CachedRouteCtx provides Read-Through caching for rs.Route if the cache is enabled.
func (Routes) Route ¶
func (rs Routes) Route(method, path []byte) *RoutesResult
Route find routes by the provided method and path and returns a new RoutesResult.
type RoutesResult ¶
type RoutesResult struct {
StatusCode int
StatusMessage []byte
RewriteURI []byte
RedirectURI []byte
AppendQueryString bool
Handler string
Filters []string
}
RouteResult represents a result of routing.
func (RoutesResult) RedirectURIWithQueryString ¶
func (r RoutesResult) RedirectURIWithQueryString(ctx *fasthttp.RequestCtx) []byte
func (RoutesResult) RewriteURIWithQueryString ¶
func (r RoutesResult) RewriteURIWithQueryString(ctx *fasthttp.RequestCtx) []byte
Click to show internal directories.
Click to hide internal directories.