src/packages/EmbedIO/Routing/RoutingModuleExtensions-AddHandlerFromBaseOrTerminalRoute.cs
/// <summary>
/// Adds a handler to a <see cref="RoutingModule"/>.
/// </summary>
/// <param name="this">The <see cref="RoutingModule"/> on which this method is called.</param>
/// <param name="verb">A <see cref="HttpVerb"/> constant representing the HTTP method
/// to associate with <paramref name="handler"/>, or <see cref="HttpVerb.Any"/>
/// if <paramref name="handler"/> can handle all HTTP methods.</param>
/// <param name="route">The route to match URL paths against.</param>
/// <param name="isBaseRoute"><see langword="true"/> if <paramref name="route"/>
/// is a base route; <see langword="false"/> if <paramref name="route"/>
/// is a terminal (non-base) route.</param>
/// <param name="handler">A callback used to handle matching contexts.</param>
/// <returns><paramref name="this"/> with the handler added.</returns>
/// <exception cref="NullReferenceException"><paramref name="this"/> is <see langword="null"/>.</exception>
/// <exception cref="ArgumentNullException">
/// <para><paramref name="route"/> is <see langword="null"/>.</para>
/// <para>- or -</para>
/// <para><paramref name="handler"/> is <see langword="null"/>.</para>
/// </exception>
/// <exception cref="FormatException"><paramref name="route"/> is not a valid route.</exception>
/// <seealso cref="RoutingModule.Add(HttpVerb,RouteMatcher,RouteHandlerCallback)"/>
Adds a handler to a .
Adds a handler to a .
public static RoutingModule Handle(this RoutingModule @this, HttpVerb verb, string route, bool isBaseRoute, RouteHandlerCallback handler)
        {
            @this.Add(verb, RouteMatcher.Parse(route, isBaseRoute), handler);
            return @this;
        }
public static RoutingModule Handle ( this RoutingModule @this , HttpVerb verb , string route , bool isBaseRoute , RouteHandlerCallback handler ) { @this . Add ( verb , RouteMatcher . Parse ( route , isBaseRoute ) , handler ) ; return @this ; }
Adds a handler to a .
Adds a handler to a .
with the handler added.
with the handler added .
None
None
None
RoutingModule
this
verb
HttpVerb
A  constant representing the HTTP method
to associate with , or
if  can handle all HTTP methods.
A constant representing the HTTP method to associate with or if can handle all HTTP methods .
route
string
The route to match URL paths against.
The route to match URL paths against .
isBaseRoute
bool
if
is a base route;  if
is a terminal (non-base) route.
if is a base route ; if is a terminal ( non - base ) route .
handler
RouteHandlerCallback
A callback used to handle matching contexts.
A callback used to handle matching contexts .
this
The  on which this method is called.
The on which this method is called .
seealso
None