summaryrefslogtreecommitdiff
path: root/lib/soap/netHttpClient.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/soap/netHttpClient.rb')
-rw-r--r--lib/soap/netHttpClient.rb60
1 files changed, 36 insertions, 24 deletions
diff --git a/lib/soap/netHttpClient.rb b/lib/soap/netHttpClient.rb
index 04d1937133..3eacdad69d 100644
--- a/lib/soap/netHttpClient.rb
+++ b/lib/soap/netHttpClient.rb
@@ -24,39 +24,31 @@ class NetHttpClient
attr_accessor :proxy
attr_accessor :no_proxy
attr_accessor :debug_dev
- attr_reader :session_manager
-
- class SessionManager
- attr_accessor :connect_timeout
- attr_accessor :send_timeout
- attr_accessor :receive_timeout
- end
-
- class Response
- attr_reader :content
- attr_reader :status
- attr_reader :reason
- attr_reader :contenttype
-
- def initialize(res)
- @status = res.code.to_i
- @reason = res.message
- @contenttype = res['content-type']
- @content = res.body
- end
- end
+ attr_accessor :ssl_config # ignored for now.
+ attr_accessor :protocol_version # ignored for now.
def initialize(proxy = nil, agent = nil)
@proxy = proxy ? URI.parse(proxy) : nil
@agent = agent
@debug_dev = nil
@session_manager = SessionManager.new
- name = 'no_proxy'
- @no_proxy = ENV[name] || ENV[name.upcase]
+ @no_proxy = nil
+ end
+
+ def set_basic_auth(uri, user_id, passwd)
+ # ignored for now.
+ end
+
+ def set_cookie_store(filename)
+ # ignored for now.
end
def reset(url)
- # ignored.
+ # ignored for now.
+ end
+
+ def reset_all
+ # ignored for now.
end
def post(url, req_body, header = {})
@@ -134,6 +126,26 @@ private
false
end
end
+
+ class SessionManager
+ attr_accessor :connect_timeout
+ attr_accessor :send_timeout
+ attr_accessor :receive_timeout
+ end
+
+ class Response
+ attr_reader :content
+ attr_reader :status
+ attr_reader :reason
+ attr_reader :contenttype
+
+ def initialize(res)
+ @status = res.code.to_i
+ @reason = res.message
+ @contenttype = res['content-type']
+ @content = res.body
+ end
+ end
end