class HTTPClient::ProxyBasicAuth
Public Instance Methods
Source
# File lib/httpclient/auth.rb, line 321 def challenge(uri, param_str = nil) synchronize { @challenge['challenged'] = true true } end
Challenge handler: remember URL for response.
Source
# File lib/httpclient/auth.rb, line 313 def get(req) synchronize { return nil if !@force_auth and !@challenge['challenged'] @cred } end
Source
# File lib/httpclient/auth.rb, line 307 def set(uri, user, passwd) synchronize do @cred = ["#{user}:#{passwd}"].pack('m').tr("\n", '') end end