Sha256: f8774b147f180f7a6949e4001598018f2da900d8c9fa8f6e219aebd50c901bf3
Contents?: true
Size: 325 Bytes
Versions: 2
Compression:
Stored size: 325 Bytes
Contents
require 'httparty' class HTTPartyAdapter < HTTPBaseAdapter def send_get_request HTTParty.get(parse_uri.to_s, headers: @headers) end def send_head_request HTTParty.head(parse_uri.to_s, headers: @headers) end def send_post_request HTTParty.post(parse_uri.to_s, body: @data, headers: @headers) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
httplog-1.0.2 | spec/adapters/httparty_adapter.rb |
httplog-1.0.1 | spec/adapters/httparty_adapter.rb |