diff --git a/src/ReC.Application/RecActions/Commands/InvokeRecActionCommand.cs b/src/ReC.Application/RecActions/Commands/InvokeRecActionCommand.cs index 07048fa..173ed17 100644 --- a/src/ReC.Application/RecActions/Commands/InvokeRecActionCommand.cs +++ b/src/ReC.Application/RecActions/Commands/InvokeRecActionCommand.cs @@ -31,6 +31,10 @@ public class InvokeRecActionCommandHandler(ISender sender) : IRequestHandler await http.PostAsync(action.EndpointUri, null, cancel), "PUT" => await http.PutAsync(action.EndpointUri, null, cancel), "DELETE" => await http.DeleteAsync(action.EndpointUri, cancel), + "PATCH" => await http.PatchAsync(action.EndpointUri, null, cancel), + "HEAD" => await http.SendAsync(new HttpRequestMessage(HttpMethod.Head, action.EndpointUri), cancel), + "OPTIONS" => await http.SendAsync(new HttpRequestMessage(HttpMethod.Options, action.EndpointUri), cancel), + "TRACE" => await http.SendAsync(new HttpRequestMessage(HttpMethod.Trace, action.EndpointUri), cancel), _ => throw new BadRequestException($"The REST type {action.RestType} is not supported.") }; }