Sha256: b31c71be1357dbf695a434268d82f89b3e2fff6a9acc3e01e0d4f935d7d5de74
Contents?: true
Size: 560 Bytes
Versions: 2
Compression:
Stored size: 560 Bytes
Contents
# frozen_string_literal: true require 'ethon' class EthonAdapter < HTTPBaseAdapter def send_get_request easy = Ethon::Easy.new easy.http_request(parse_uri(true).to_s, :get, headers: @headers) easy.perform end def send_head_request easy = Ethon::Easy.new easy.http_request(parse_uri.to_s, :head, headers: @headers) easy.perform end def send_post_request easy = Ethon::Easy.new easy.http_request(parse_uri.to_s, :post, headers: @headers, body: @data) easy.perform end def self.is_libcurl? true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
httplog-1.3.1 | spec/adapters/ethon_adapter.rb |
httplog-1.3.0 | spec/adapters/ethon_adapter.rb |