module HTTP::Chainable

def auth(value, opts = nil)

Parameters:
  • value (#to_s) -- Authorization header value
def auth(value, opts = nil)
  # shim for deprecated auth(:basic, opts).
  # will be removed in 0.8.0
  return basic_auth(opts) if :basic == value
  headers Headers::AUTHORIZATION => value.to_s
end