lib/uploadcare/client/rest_client.rb
def request(uri:, method: 'GET', **options)
        request_headers = Param::AuthenticationHeader.call(method: method.upcase, uri: uri,
                                                           content_type: headers[:'Content-Type'], **options)
        handle_throttling do
          send("api_struct_#{method.downcase}", path: remove_trailing_slash(uri),
                                                headers: request_headers, body: options[:content])
        end
      end
# Send request with authentication header
#
# Handle throttling as well
Send request with authentication header
Handle throttling as well
Send request with authentication header Handle throttling as well
def request(uri:, method: 'GET', **options)
        request_headers = Param::AuthenticationHeader.call(method: method.upcase, uri: uri,
                                                           content_type: headers[:'Content-Type'], **options)
        handle_throttling do
          send("api_struct_#{method.downcase}", path: remove_trailing_slash(uri),
                                                headers: request_headers, body: options[:content])
        end
      end
def request ( uri : , method : 'GET' , ** options ) request_headers = Param :: AuthenticationHeader . call ( method : method . upcase , uri : uri , content_type : headers [ :' Content-Type ' ] , ** options ) handle_throttling do send ( "api_struct_#{method.downcase}" , path : remove_trailing_slash ( uri ) , headers : request_headers , body : options [ :content ] ) end end
Send request with authentication header
Handle throttling as well
Send request with authentication header Handle throttling as well
uri
method
options