From d6893d6c60de16556e172882589509741680fe87 Mon Sep 17 00:00:00 2001 From: Tom Taylor Date: Sat, 11 Nov 2023 13:09:25 +0000 Subject: [PATCH] Support PATCH as an HTTP method on `Snap.Cluster` --- lib/snap/cluster.ex | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/snap/cluster.ex b/lib/snap/cluster.ex index e67491f..3f4e2ef 100644 --- a/lib/snap/cluster.ex +++ b/lib/snap/cluster.ex @@ -64,6 +64,10 @@ defmodule Snap.Cluster do Request.request(__MODULE__, :delete, path, nil, params, headers, opts) end + def patch(path, body \\ nil, params \\ [], headers \\ [], opts \\ []) do + Request.request(__MODULE__, :patch, path, body, params, headers, opts) + end + def child_spec(opts) do %{ id: __MODULE__,