Skip to content

Commit 51da70d

Browse files
Remove unapproved MVC and routing functionality, keep only HttpMethods.Query support
Co-authored-by: BrennanConroy <[email protected]>
1 parent af2e23c commit 51da70d

File tree

7 files changed

+0
-259
lines changed

7 files changed

+0
-259
lines changed

HTTP_QUERY_USAGE_EXAMPLES.md

Lines changed: 0 additions & 117 deletions
This file was deleted.

src/Http/Routing/src/Builder/EndpointRouteBuilderExtensions.cs

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public static class EndpointRouteBuilderExtensions
2424
private static readonly string[] PutVerb = new[] { HttpMethods.Put };
2525
private static readonly string[] DeleteVerb = new[] { HttpMethods.Delete };
2626
private static readonly string[] PatchVerb = new[] { HttpMethods.Patch };
27-
private static readonly string[] QueryVerb = new[] { HttpMethods.Query };
2827

2928
/// <summary>
3029
/// Creates a <see cref="RouteGroupBuilder"/> for defining endpoints all prefixed with the specified <paramref name="prefix"/>.
@@ -135,22 +134,6 @@ public static IEndpointConventionBuilder MapPatch(
135134
return MapMethods(endpoints, pattern, PatchVerb, requestDelegate);
136135
}
137136

138-
/// <summary>
139-
/// Adds a <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that matches HTTP QUERY requests
140-
/// for the specified pattern.
141-
/// </summary>
142-
/// <param name="endpoints">The <see cref="IEndpointRouteBuilder"/> to add the route to.</param>
143-
/// <param name="pattern">The route pattern.</param>
144-
/// <param name="requestDelegate">The delegate executed when the endpoint is matched.</param>
145-
/// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns>
146-
public static IEndpointConventionBuilder MapQuery(
147-
this IEndpointRouteBuilder endpoints,
148-
[StringSyntax("Route")] string pattern,
149-
RequestDelegate requestDelegate)
150-
{
151-
return MapMethods(endpoints, pattern, QueryVerb, requestDelegate);
152-
}
153-
154137
/// <summary>
155138
/// Adds a <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that matches HTTP requests
156139
/// for the specified HTTP methods and pattern.
@@ -324,24 +307,6 @@ public static RouteHandlerBuilder MapPatch(
324307
return MapMethods(endpoints, pattern, PatchVerb, handler);
325308
}
326309

327-
/// <summary>
328-
/// Adds a <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that matches HTTP QUERY requests
329-
/// for the specified pattern.
330-
/// </summary>
331-
/// <param name="endpoints">The <see cref="IEndpointRouteBuilder"/> to add the route to.</param>
332-
/// <param name="pattern">The route pattern.</param>
333-
/// <param name="handler">The <see cref="Delegate" /> executed when the endpoint is matched.</param>
334-
/// <returns>A <see cref="RouteHandlerBuilder"/> that can be used to further customize the endpoint.</returns>
335-
[RequiresUnreferencedCode(MapEndpointUnreferencedCodeWarning)]
336-
[RequiresDynamicCode(MapEndpointDynamicCodeWarning)]
337-
public static RouteHandlerBuilder MapQuery(
338-
this IEndpointRouteBuilder endpoints,
339-
[StringSyntax("Route")] string pattern,
340-
Delegate handler)
341-
{
342-
return MapMethods(endpoints, pattern, QueryVerb, handler);
343-
}
344-
345310
/// <summary>
346311
/// Adds a <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that matches HTTP requests
347312
/// for the specified HTTP methods and pattern.
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
#nullable enable
22
Microsoft.AspNetCore.Builder.ValidationEndpointConventionBuilderExtensions
3-
static Microsoft.AspNetCore.Builder.EndpointRouteBuilderExtensions.MapQuery(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder! endpoints, string! pattern, Microsoft.AspNetCore.Http.RequestDelegate! requestDelegate) -> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder!
4-
static Microsoft.AspNetCore.Builder.EndpointRouteBuilderExtensions.MapQuery(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder! endpoints, string! pattern, System.Delegate! handler) -> Microsoft.AspNetCore.Builder.RouteHandlerBuilder!
53
static Microsoft.AspNetCore.Builder.ValidationEndpointConventionBuilderExtensions.DisableValidation<TBuilder>(this TBuilder builder) -> TBuilder

src/Http/Routing/test/UnitTests/Builder/MapQueryExtensionTests.cs

Lines changed: 0 additions & 68 deletions
This file was deleted.

src/Mvc/Mvc.Core/src/HttpQueryAttribute.cs

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/Mvc/Mvc.Core/src/PublicAPI.Unshipped.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ Microsoft.AspNetCore.Mvc.ApiExplorer.IApiRequestFormatMetadataProvider.GetSuppor
44
Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseMetadataProvider.Description.get -> string?
55
*REMOVED*Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseTypeMetadataProvider.GetSupportedContentTypes(string! contentType, System.Type! objectType) -> System.Collections.Generic.IReadOnlyList<string!>?
66
Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseTypeMetadataProvider.GetSupportedContentTypes(string? contentType, System.Type! objectType) -> System.Collections.Generic.IReadOnlyList<string!>?
7-
Microsoft.AspNetCore.Mvc.HttpQueryAttribute
8-
Microsoft.AspNetCore.Mvc.HttpQueryAttribute.HttpQueryAttribute() -> void
9-
Microsoft.AspNetCore.Mvc.HttpQueryAttribute.HttpQueryAttribute(string! template) -> void
107
Microsoft.AspNetCore.Mvc.ProducesAttribute.Description.get -> string?
118
Microsoft.AspNetCore.Mvc.ProducesAttribute.Description.set -> void
129
Microsoft.AspNetCore.Mvc.ProducesDefaultResponseTypeAttribute.Description.get -> string?

src/Mvc/Mvc.Core/test/Routing/HttpMethodProviderAttributesTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ public static TheoryData<IActionHttpMethodProvider, IEnumerable<string>> HttpMet
2727
data.Add(new HttpDeleteAttribute(), new[] { "DELETE" });
2828
data.Add(new HttpHeadAttribute(), new[] { "HEAD" });
2929
data.Add(new HttpOptionsAttribute(), new[] { "OPTIONS" });
30-
data.Add(new HttpQueryAttribute(), new[] { "QUERY" });
3130
data.Add(new AcceptVerbsAttribute("MERGE", "OPTIONS"), new[] { "MERGE", "OPTIONS" });
3231

3332
return data;

0 commit comments

Comments
 (0)