Sha256: 3152d9f365a038f38f5a31a6dde5427a3b25f275d1a6d6409ab6f2db603962e7
Contents?: true
Size: 554 Bytes
Versions: 6
Compression:
Stored size: 554 Bytes
Contents
# frozen_string_literal: true require 'ethon' class EthonAdapter < HTTPBaseAdapter def send_get_request easy = Ethon::Easy.new easy.http_request(parse_uri.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
6 entries across 6 versions & 1 rubygems