Sisk

Method

Route.Match

Namespace
Sisk.Core.Routing
Assembly
Sisk.Core.dll

Match(string, Router) #

Tests if the specified request path matches this route path. The HTTP method is validated by the Router after the path matches.

C#
public virtual RouteMatch Match(string requestPath, Router router)

Parameters #

requestPath string

The request path to test.

router Router

The router which is matching this route.

Returns #

RouteMatch

A RouteMatch with the match result and the captured route parameters.

Type to search the documentation and the API reference.