Method: HTTPClient::ProxyBasicAuth#set

Defined in:
lib/httpclient/auth.rb

#set(uri, user, passwd) ⇒ Object



305
306
307
308
309
310
# File 'lib/httpclient/auth.rb', line 305

def set(uri, user, passwd)
  synchronize do
    @cred = ["#{user}:#{passwd}"].pack('m').tr("\n", '')
    @set = true
  end
end