Module: NetRecorder::NetHTTPHeader

Defined in:
lib/http_header.rb

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object

:nodoc:



4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/http_header.rb', line 4

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(, password)
      @bauth = "#{}:#{password}@"
      alias_for_basic_auth(, password)
    end
  end
end