RequestDelegateRouteBuilderExtensions Class

Namespace
Microsoft.AspNetCore.Routing
Assemblies
  • Microsoft.AspNetCore.Routing

Syntax

public class RequestDelegateRouteBuilderExtensions
class Microsoft.AspNetCore.Routing.RequestDelegateRouteBuilderExtensions

Methods

MapDelete(Microsoft.AspNetCore.Routing.IRouteBuilder, System.String, Microsoft.AspNetCore.Http.RequestDelegate)

Adds a route to the Microsoft.AspNetCore.Routing.IRouteBuilder that only matches HTTP DELETE requests for the given <em>template</em>, and <em>handler</em>.

Arguments:
Return type:

Microsoft.AspNetCore.Routing.IRouteBuilder

Returns:

A reference to the <em>builder</em> after this operation has completed.

public static IRouteBuilder MapDelete(this IRouteBuilder builder, string template, RequestDelegate handler)
MapDelete(Microsoft.AspNetCore.Routing.IRouteBuilder, System.String, System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>)

Adds a route to the Microsoft.AspNetCore.Routing.IRouteBuilder that only matches HTTP DELETE requests for the given <em>template</em>, and <em>action</em>.

Arguments:
Return type:

Microsoft.AspNetCore.Routing.IRouteBuilder

Returns:

A reference to the <em>builder</em> after this operation has completed.

public static IRouteBuilder MapDelete(this IRouteBuilder builder, string template, Action<IApplicationBuilder> action)
MapGet(Microsoft.AspNetCore.Routing.IRouteBuilder, System.String, Microsoft.AspNetCore.Http.RequestDelegate)

Adds a route to the Microsoft.AspNetCore.Routing.IRouteBuilder that only matches HTTP GET requests for the given <em>template</em>, and <em>handler</em>.

Arguments:
Return type:

Microsoft.AspNetCore.Routing.IRouteBuilder

Returns:

A reference to the <em>builder</em> after this operation has completed.

public static IRouteBuilder MapGet(this IRouteBuilder builder, string template, RequestDelegate handler)
MapGet(Microsoft.AspNetCore.Routing.IRouteBuilder, System.String, System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>)

Adds a route to the Microsoft.AspNetCore.Routing.IRouteBuilder that only matches HTTP GET requests for the given <em>template</em>, and <em>action</em>.

Arguments:
Return type:

Microsoft.AspNetCore.Routing.IRouteBuilder

Returns:

A reference to the <em>builder</em> after this operation has completed.

public static IRouteBuilder MapGet(this IRouteBuilder builder, string template, Action<IApplicationBuilder> action)
MapPost(Microsoft.AspNetCore.Routing.IRouteBuilder, System.String, Microsoft.AspNetCore.Http.RequestDelegate)

Adds a route to the Microsoft.AspNetCore.Routing.IRouteBuilder that only matches HTTP POST requests for the given <em>template</em>, and <em>handler</em>.

Arguments:
Return type:

Microsoft.AspNetCore.Routing.IRouteBuilder

Returns:

A reference to the <em>builder</em> after this operation has completed.

public static IRouteBuilder MapPost(this IRouteBuilder builder, string template, RequestDelegate handler)
MapPost(Microsoft.AspNetCore.Routing.IRouteBuilder, System.String, System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>)

Adds a route to the Microsoft.AspNetCore.Routing.IRouteBuilder that only matches HTTP POST requests for the given <em>template</em>, and <em>action</em>.

Arguments:
Return type:

Microsoft.AspNetCore.Routing.IRouteBuilder

Returns:

A reference to the <em>builder</em> after this operation has completed.

public static IRouteBuilder MapPost(this IRouteBuilder builder, string template, Action<IApplicationBuilder> action)
MapPut(Microsoft.AspNetCore.Routing.IRouteBuilder, System.String, Microsoft.AspNetCore.Http.RequestDelegate)

Adds a route to the Microsoft.AspNetCore.Routing.IRouteBuilder that only matches HTTP PUT requests for the given <em>template</em>, and <em>handler</em>.

Arguments:
Return type:

Microsoft.AspNetCore.Routing.IRouteBuilder

Returns:

A reference to the <em>builder</em> after this operation has completed.

public static IRouteBuilder MapPut(this IRouteBuilder builder, string template, RequestDelegate handler)
MapPut(Microsoft.AspNetCore.Routing.IRouteBuilder, System.String, System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>)

Adds a route to the Microsoft.AspNetCore.Routing.IRouteBuilder that only matches HTTP PUT requests for the given <em>template</em>, and <em>action</em>.

Arguments:
Return type:

Microsoft.AspNetCore.Routing.IRouteBuilder

Returns:

A reference to the <em>builder</em> after this operation has completed.

public static IRouteBuilder MapPut(this IRouteBuilder builder, string template, Action<IApplicationBuilder> action)
MapRoute(Microsoft.AspNetCore.Routing.IRouteBuilder, System.String, Microsoft.AspNetCore.Http.RequestDelegate)

Adds a route to the Microsoft.AspNetCore.Routing.IRouteBuilder for the given <em>template</em>, and <em>handler</em>.

Arguments:
Return type:

Microsoft.AspNetCore.Routing.IRouteBuilder

Returns:

A reference to the <em>builder</em> after this operation has completed.

public static IRouteBuilder MapRoute(this IRouteBuilder builder, string template, RequestDelegate handler)
MapRoute(Microsoft.AspNetCore.Routing.IRouteBuilder, System.String, System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>)

Adds a route to the Microsoft.AspNetCore.Routing.IRouteBuilder for the given <em>template</em>, and <em>action</em>.

Arguments:
Return type:

Microsoft.AspNetCore.Routing.IRouteBuilder

Returns:

A reference to the <em>builder</em> after this operation has completed.

public static IRouteBuilder MapRoute(this IRouteBuilder builder, string template, Action<IApplicationBuilder> action)
MapVerb(Microsoft.AspNetCore.Routing.IRouteBuilder, System.String, System.String, Microsoft.AspNetCore.Http.RequestDelegate)

Adds a route to the Microsoft.AspNetCore.Routing.IRouteBuilder that only matches HTTP requests for the given <em>verb</em>, <em>template</em>, and <em>handler</em>.

Arguments:
Return type:

Microsoft.AspNetCore.Routing.IRouteBuilder

Returns:

A reference to the <em>builder</em> after this operation has completed.

public static IRouteBuilder MapVerb(this IRouteBuilder builder, string verb, string template, RequestDelegate handler)
MapVerb(Microsoft.AspNetCore.Routing.IRouteBuilder, System.String, System.String, System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>)

Adds a route to the Microsoft.AspNetCore.Routing.IRouteBuilder that only matches HTTP requests for the given <em>verb</em>, <em>template</em>, and <em>action</em>.

Arguments:
Return type:

Microsoft.AspNetCore.Routing.IRouteBuilder

Returns:

A reference to the <em>builder</em> after this operation has completed.

public static IRouteBuilder MapVerb(this IRouteBuilder builder, string verb, string template, Action<IApplicationBuilder> action)