class HTTP::AuthorizationHeader::BasicAuth
@see tools.ietf.org/html/rfc2617<br>Basic authorization header builder
def initialize(opts)
(**opts)
-
:pass
(#to_s
) -- -
:user
(#to_s
) --
Parameters:
-
opts
(#fetch
) --
def initialize(opts) @user = opts.fetch :user @pass = opts.fetch :pass end
def to_s
def to_s 'Basic ' << Base64.strict_encode64("#{@user}:#{@pass}") end