lib/sinew/base.rb
# Check httpdisk status for this request. Defaults to form body type.
Check httpdisk status for this request. Defaults to form body type.
Check httpdisk status for this request . Defaults to form body type .
def status(method, url, params = nil, body = nil)
      if body.is_a?(Hash)
        body = Faraday::Utils::ParamsHash[body].to_query
      end
      env = Faraday::Env.new.tap do
        _1.method = method.to_s.downcase.to_sym
        _1.request_headers = {}
        _1.request_body = body
        _1.url = faraday.build_url(url, params)
      end
      httpdisk.status(env)
    end
def status ( method , url , params = nil , body = nil ) if body . is_a? ( Hash ) body = Faraday :: Utils :: ParamsHash [ body ] . to_query end env = Faraday :: Env . new . tap do _1 . method = method . to_s . downcase . to_sym _1 . request_headers = { } _1 . request_body = body _1 . url = faraday . build_url ( url , params ) end httpdisk . status ( env ) end
Check httpdisk status for this request.
Check httpdisk status for this request .
# if hash, default to url encoded form # see lib/faraday/request/url_encoded.rb
method
<not_specific>
url
<not_specific>
params
<not_specific>
body
<not_specific>