Method: HTTPClient::ProxyBasicAuth#set

Defined in:
lib/httpclient/auth.rb

#set(uri, user, passwd) ⇒ Object



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

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