C# Class Sage.DevTools.Controllers.RouteDebuggerController

Implements a controller that enables testing of route matching.
Inheritance: Sage.Controllers.SageController
显示文件 Open project: igorfrance/sage

Public Methods

Method Description
Index ( string url, string httpMethod ) : string

Tests the specified URL against all configured routes and displays a view that shows the results as an HTML table.

Private Methods

Method Description
FormatOptions ( string selected, string values ) : string
FormatRow ( bool hilite ) : string
FormatValues ( RouteValueDictionary values ) : string
GetRoutesText ( HttpContextMock fakeContext ) : string
MakeAppRelative ( string url ) : string

Method Details

Index() public method

Tests the specified URL against all configured routes and displays a view that shows the results as an HTML table.
public Index ( string url, string httpMethod ) : string
url string The URL to test
httpMethod string The HTTP request method to test with.
return string