Sha256: 4f4a5fd9c0e6450f628afafc1ae681aba96d93ce95a32b0a6872670c15334d9c
Contents?: true
Size: 425 Bytes
Versions: 18
Compression:
Stored size: 425 Bytes
Contents
module RestClient class Request def self.execute_options(args, &block) new(args).execute_options(&block) end def execute_options(&block) uri = parse_url_with_auth(url) http_request = Net::HTTPGenericRequest.new(method.to_s.upcase, false, true, uri.request_uri, processed_headers) transmit uri, http_request, payload, & block ensure payload.close if payload end end end
Version data entries
18 entries across 18 versions & 1 rubygems