Sha256: 7c434e6cf62c53cadbf6aaf136962d46f7e469fa24504302df3a256ca08ff866
Contents?: true
Size: 427 Bytes
Versions: 3
Compression:
Stored size: 427 Bytes
Contents
module Netrecording module NetHTTPHeader def self.extended(base) #:nodoc: base.class_eval do alias :alias_for_basic_auth :basic_auth attr_accessor :bauth # override basic auth to make grabbing the basic auth easy def basic_auth(account, password) @bauth = "#{account}:#{password}@" alias_for_basic_auth(account, password) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
netrecording-0.1.2 | lib/netrecording/http_header.rb |
netrecording-0.1.1 | lib/netrecording/http_header.rb |
netrecording-0.1.0 | lib/netrecording/http_header.rb |