Class: WinRM::HTTP::HttpPlaintext

Inherits:
HttpTransport show all
Defined in:
lib/winrm/http/transport.rb

Overview

Plain text, insecure, HTTP transport

Instance Attribute Summary

Attributes inherited from HttpTransport

#endpoint

Instance Method Summary collapse

Methods inherited from HttpTransport

#basic_auth_only!, #no_ssl_peer_verification!, #no_sspi_auth!, #send_request, #ssl_peer_fingerprint_verification!, #verify_ssl_fingerprint, #with_untrusted_ssl_connection

Constructor Details

#initialize(endpoint, user, pass, opts) ⇒ HttpPlaintext

Returns a new instance of HttpPlaintext.



138
139
140
141
142
143
144
# File 'lib/winrm/http/transport.rb', line 138

def initialize(endpoint, user, pass, opts)
  super(endpoint, opts)
  @httpcli.set_auth(nil, user, pass)
  no_sspi_auth! if opts[:disable_sspi]
  basic_auth_only! if opts[:basic_auth_only]
  no_ssl_peer_verification! if opts[:no_ssl_peer_verification]
end