--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Sets credential for Web server authentication.
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "domain:"
    body: a String or an URI to specify where HTTPClient should use this
  type: :NOTE
- !ruby/struct:SM::Flow::VERB 
  body: "      credential.  If you set uri to nil, HTTPClient uses this credential\n      wherever a server requires it.\n"
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "user:"
    body: username String.
  - !ruby/struct:SM::Flow::LI 
    label: "passwd:"
    body: password String.
  type: :NOTE
- !ruby/struct:SM::Flow::P 
  body: You can set multiple credentials for each uri.
- !ruby/struct:SM::Flow::VERB 
  body: "  clnt.set_auth('http://www.example.com/foo/', 'foo_user', 'passwd')\n  clnt.set_auth('http://www.example.com/bar/', 'bar_user', 'passwd')\n"
- !ruby/struct:SM::Flow::P 
  body: Calling this method resets all existing sessions.
full_name: HTTPClient#set_auth
is_singleton: false
name: set_auth
params: (domain, user, passwd)
visibility: public
