lib/winrm/http/auth.rb
def filter_request(req)
      @authenticator.each do |auth|
        next unless auth.set? # hasn't be set, don't use it
        if cred = auth.get(req)
          auth.encrypt_payload(req) if auth.respond_to?(:encrypt_payload)
          req.header.set('Authorization', auth.scheme + " " + cred)
          return
        end
      end
    end
# Filter API implementation.  Traps HTTP request and insert
# 'Authorization' header if needed.
Filter API implementation.  Traps HTTP request and insert
'Authorization' header if needed.
Filter API implementation . Traps HTTP request and insert ' Authorization ' header if needed .
def filter_request(req)
      @authenticator.each do |auth|
        next unless auth.set? 
        if cred = auth.get(req)
          auth.encrypt_payload(req) if auth.respond_to?(:encrypt_payload)
          req.header.set('Authorization', auth.scheme + " " + cred)
          return
        end
      end
    end
def filter_request ( req ) @authenticator . each do | auth | next unless auth . set? if cred = auth . get ( req ) auth . encrypt_payload ( req ) if auth . respond_to? ( :encrypt_payload ) req . header . set ( 'Authorization' , auth . scheme + " " + cred ) return end end end
Filter API implementation.
Filter API implementation .
# hasn't be set, don't use it
req