lib/httpclient.rb
# new method that has same signature as 'request'
new method that has same signature as 'request'
new method that has same signature as ' request '
def request_async2(method, uri, *args)
    query, body, header = keyword_argument(args, :query, :body, :header)
    if [:post, :put].include?(method)
      body ||= ''
    end
    if method == :propfind
      header ||= PROPFIND_DEFAULT_EXTHEADER
    else
      header ||= {}
    end
    uri = to_resource_url(uri)
    do_request_async(method, uri, query, body, header)
  end
def request_async2 ( method , uri , * args ) query , body , header = keyword_argument ( args , :query , :body , :header ) if [ :post , :put ] . include? ( method ) body ||= '' end if method == :propfind header ||= PROPFIND_DEFAULT_EXTHEADER else header ||= { } end uri = to_resource_url ( uri ) do_request_async ( method , uri , query , body , header ) end
new method that has same signature as 'request'
new method that has same signature as ' request '
method
<not_specific>
uri
<not_specific>
args
<not_specific>