Router
public protocol Router
                An instance resolving urls to route patterns returning RouteResults
- 
                  
                  
Add a route pattern to your router
Throws
throws errors for wrong formatted patternsDeclaration
Swift
func add(routePattern: String) throwsParameters
routePatterna route pattern defining
 - 
                  
                  
Route for an given url
Throws
throws routing errors if they occourDeclaration
Swift
func route(url: URL, parameters: [String : Any]?, routingOption: RoutingOption?) throws -> RouteResult?Parameters
urla url
Return Value
a RouteResult if the router can resolve the url, nil otherwise
 - 
                  
                  
Route for an given url
Throws
throws routing errors if they occourDeclaration
Swift
func route(url: URL, parameters: [String : Any]?) throws -> RouteResult?Parameters
urla url
Return Value
a RouteResult if the router can resolve the url, nil otherwise
 - 
                  
                  
Route for an given url
Throws
throws routing errors if they occourDeclaration
Swift
func route(url: URL) throws -> RouteResult?Parameters
urla url
Return Value
a RouteResult if the router can resolve the url, nil otherwise
 
View on GitHub
        Router Protocol Reference