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

Version Path
haveapi-client-0.10.0 lib/restclient_ext/request.rb
haveapi-client-0.9.0 lib/restclient_ext/request.rb
haveapi-client-0.8.0 lib/restclient_ext/request.rb
haveapi-client-0.7.1 lib/restclient_ext/request.rb
haveapi-client-0.7.0 lib/restclient_ext/request.rb
haveapi-client-0.6.0 lib/restclient_ext/request.rb
haveapi-client-0.5.4 lib/restclient_ext/request.rb
haveapi-client-0.5.3 lib/restclient_ext/request.rb
haveapi-client-0.5.2 lib/restclient_ext/request.rb
haveapi-client-0.5.1 lib/restclient_ext/request.rb
haveapi-client-0.5.0 lib/restclient_ext/request.rb
haveapi-client-0.4.2 lib/restclient_ext/request.rb
haveapi-client-0.4.1 lib/restclient_ext/request.rb
haveapi-client-0.4.0 lib/restclient_ext/request.rb
haveapi-client-0.3.0 lib/restclient_ext/request.rb
haveapi-client-0.2.0 lib/restclient_ext/request.rb
haveapi-client-0.1.1 lib/restclient_ext/request.rb
haveapi-client-0.1.0 lib/restclient_ext/request.rb