class Rack::Auth::Basic::Request

def basic?

def basic?
  "basic" == scheme && credentials.length == 2
end

def credentials

def credentials
  @credentials ||= params.unpack1('m').split(':', 2)
end

def username

def username
  credentials.first
end