diff options
| author | Zouski <nick.warshawski@gmail.com> | 2019-04-29 18:26:58 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-29 18:26:58 -0600 |
| commit | 57fba4ae06a23111d4aa7ad7bd63b514d4f16b6c (patch) | |
| tree | d90d0725b16e817ce23d20c9bdac4dbc7e6c2e3d /lib | |
| parent | cd730c11601ef54631f8ab6f883864639ea758bd (diff) | |
Add patch to hippie
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/net/hippie/client.rb | 6 |
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 |
