7 references to MapMiddlewareVerb
Microsoft.AspNetCore.Routing (4)
RequestDelegateRouteBuilderExtensions.cs (4)
77return builder.MapMiddlewareVerb("DELETE", template, action); 119return builder.MapMiddlewareVerb(HttpMethods.Get, template, action); 161return builder.MapMiddlewareVerb(HttpMethods.Post, template, action); 203return builder.MapMiddlewareVerb(HttpMethods.Put, template, action);
Microsoft.AspNetCore.Routing.Tests (3)
RequestDelegateRouteBuilderExtensionsTest.cs (3)
36{ b => { b.MapMiddlewareVerb("PUT", "api/{id}", app => { }); }, c => { c.Request.Method = "PUT"; } }, 92{ b => { b.MapMiddlewareVerb("PUT", "api/{id}", app => { }); }, c => { c.Request.Method = "HEAD"; } }, 94{ b => { b.MapMiddlewareVerb("PUT", "api/{id}/extra", app => { }); }, c => { c.Request.Method = "PUT"; } },