mirror of
https://github.com/alexhopeoconnor/binarylane-dotnet.git
synced 2026-10-20 16:51:28 +10:00
Reorganize SDK source layout
This commit is contained in:
@@ -137,7 +137,7 @@ public sealed class BinaryLaneHttpExecutor : IBinaryLaneApiExecutor
|
||||
object? body = null,
|
||||
IReadOnlyDictionary<string, object?>? query = null,
|
||||
CancellationToken cancellationToken = default) =>
|
||||
(await SendAsync<TResponse>(new BinaryLaneRequest(new HttpMethod("PATCH"), path) { Body = body, Query = query }, cancellationToken)
|
||||
(await SendAsync<TResponse>(new BinaryLaneRequest(BinaryLaneHttpMethods.Patch, path) { Body = body, Query = query }, cancellationToken)
|
||||
.ConfigureAwait(false)).Body;
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
using System.Net.Http;
|
||||
|
||||
namespace BinaryLane.Api.V2.Http;
|
||||
|
||||
/// <summary>HTTP methods required by the BinaryLane API beyond the framework's static set.</summary>
|
||||
internal static class BinaryLaneHttpMethods
|
||||
{
|
||||
internal static readonly HttpMethod Patch = new("PATCH");
|
||||
}
|
||||
Reference in New Issue
Block a user