# class Rack::Auth::Basic::Request

### Public Instance Methods

basic?() click to toggle source

    # File lib/rack/auth/basic.rb, line 45
    def basic?
      "basic" == scheme && credentials.length == 2
    end

credentials() click to toggle source

    # File lib/rack/auth/basic.rb, line 49
    def credentials
      @credentials ||= params.unpack("m").first.split(':', 2)
    end

username() click to toggle source

    # File lib/rack/auth/basic.rb, line 53
    def username
      credentials.first
    end