Method: HTTPClient::DigestAuth#set
- Defined in:
- lib/httpclient/auth.rb
#set(uri, user, passwd) ⇒ Object
Set authentication credential. uri == nil is ignored.
343 344 345 346 347 348 349 350 |
# File 'lib/httpclient/auth.rb', line 343 def set(uri, user, passwd) synchronize do if uri uri = Util.uri_dirname(uri) @auth[uri] = [user, passwd] end end end |