Skip to content

[feat] Allow mapping HEAD method when calling MapQuery() #105

Closed
@ikesnowy

Description

@ikesnowy

Is your feature request related to a problem? Please describe.

Needs a way to make query support GET and HEAD methods

Server:

app.MapQuery<GetItemQuery>("/items/{key}");

ServiceAgent.HasItemAsync():

var request = new HttpRequestMessage(HttpMethod.Head, "/items/1");
var response = await _httpClient.SendAsync(request);
return response.IsSuccessfulStatusCode;

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions