class Rack::Auth::Digest::Request - rack-1.6.2 Documentation

# class Rack::Auth::Digest::Request

### Public Instance Methods

correct_uri?() click to toggle source

    # File lib/rack/auth/digest/request.rb, line 17
    def correct_uri?
      request.fullpath == uri
    end

digest?() click to toggle source

    # File lib/rack/auth/digest/request.rb, line 13
    def digest?
      "digest" == scheme
    end

method() click to toggle source

    # File lib/rack/auth/digest/request.rb, line 9
    def method
      @env['rack.methodoverride.original_method'] || @env[REQUEST_METHOD]
    end

method_missing(sym, *args) click to toggle source
Calls superclass method

    # File lib/rack/auth/digest/request.rb, line 33
    def method_missing(sym, *args)
      return super unless params.has_key?(key = sym.to_s)
      return params[key] if args.size == 0
      raise ArgumentError, "wrong number of arguments (#{args.size} for 0)"
    end

nonce() click to toggle source

    # File lib/rack/auth/digest/request.rb, line 21
    def nonce
      @nonce ||= Nonce.parse(params['nonce'])
    end

params() click to toggle source

    # File lib/rack/auth/digest/request.rb, line 25
    def params
      @params ||= Params.parse(parts.last)
    end

respond_to?(sym, *) click to toggle source
Calls superclass method

    # File lib/rack/auth/digest/request.rb, line 29
    def respond_to?(sym, *)
      super or params.has_key? sym.to_s
    end