Parent

Files

HTTPClient::AuthFilterBase

Common abstract class for authentication filter.

There are 2 authentication filters.

WWWAuth

Authentication filter for handling authentication negotiation between Web server. Parses ‘WWW-Authentication’ header in response and generates ‘Authorization’ header in request.

ProxyAuth

Authentication filter for handling authentication negotiation between Proxy server. Parses ‘Proxy-Authentication’ header in response and generates ‘Proxy-Authorization’ header in request.

Private Instance Methods

parse_authentication_header(res, tag) click to toggle source
    # File lib/httpclient/auth.rb, line 42
42:     def parse_authentication_header(res, tag)
43:       challenge = res.header[tag]
44:       return nil unless challenge
45:       challenge.collect { |c| parse_challenge_header(c) }.compact
46:     end
parse_challenge_header(challenge) click to toggle source
    # File lib/httpclient/auth.rb, line 48
48:     def parse_challenge_header(challenge)
49:       scheme, param_str = challenge.scan(/\A(\S+)(?:\s+(.*))?\z/)[0]
50:       return nil if scheme.nil?
51:       return scheme, param_str
52:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.