9 references to MapVerb
Microsoft.AspNetCore.Routing (6)
RequestDelegateRouteBuilderExtensions.cs (6)
64return builder.MapVerb("DELETE", template, handler); 106return builder.MapVerb(HttpMethods.Get, template, handler); 148return builder.MapVerb(HttpMethods.Post, template, handler); 190return builder.MapVerb(HttpMethods.Put, template, handler); 242return builder.MapVerb(verb, template, requestDelegate); 294return builder.MapVerb(verb, template, nested.Build());
Microsoft.AspNetCore.Routing.Tests (3)
RequestDelegateRouteBuilderExtensionsTest.cs (3)
35{ b => { b.MapVerb("PUT", "api/{id}", NullHandler); }, c => { c.Request.Method = "PUT"; } }, 91{ b => { b.MapVerb("PUT", "api/{id}", NullHandler); }, c => { c.Request.Method = "POST"; } }, 93{ b => { b.MapVerb("PUT", "api/{id}/extra", NullHandler); }, c => { c.Request.Method = "PUT"; } },