Open
Description
Background and motivation
With the new C reaching the Proposed Standard maturity level, now might be the right time to add it to HttpClient
.
At this moment we want to implement only minimal support for QUERY verb.
As QUERY verb become adopted by users and its full support requested, we will consider to implement it in whole scope as defined in #113522
Alternative Designs
No response
Risks
No response
API Proposal
A new static HttpMethod
member called Query
:
public partial class HttpMethod
{
public static HttpMethod Query { get; }
}
API Usage
using var client = new HttpClient();
var response = await client.SendAsync(new HttpRequestMessage(HttpMethod.Query, "https://api.example.com/resource"));
Alternative Designs
No response
Risks
No response