summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/net/hippie/client.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/net/hippie/client.rb b/lib/net/hippie/client.rb
index 8983833..b496204 100644
--- a/lib/net/hippie/client.rb
+++ b/lib/net/hippie/client.rb
@@ -42,6 +42,12 @@ module Net
request = request_for(Net::HTTP::Get, uri, headers: headers, body: body)
execute(uri, request, &block)
end
+
+ def post(uri, headers: {}, body: {}, &block)
+ type = Net::HTTP::Patch
+ request = request_for(type, uri, headers: headers, body: body)
+ execute(uri, request, &block)
+ end
def post(uri, headers: {}, body: {}, &block)
type = Net::HTTP::Post