Changeset 1093
- Timestamp:
- 12/02/03 00:14:39 (5 years ago)
- Files:
-
- trunk/lib/soap/netHttpClient.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/soap/netHttpClient.rb
r1058 r1093 25 25 attr_accessor :no_proxy 26 26 attr_accessor :debug_dev 27 attr_reader :session_manager 28 29 class SessionManager 30 attr_accessor :connect_timeout 31 attr_accessor :send_timeout 32 attr_accessor :receive_timeout 33 end 34 35 class Response 36 attr_reader :content 37 attr_reader :status 38 attr_reader :reason 39 attr_reader :contenttype 40 41 def initialize(res) 42 @status = res.code.to_i 43 @reason = res.message 44 @contenttype = res['content-type'] 45 @content = res.body 46 end 47 end 27 attr_accessor :ssl_config # ignored for now. 28 attr_accessor :protocol_version # ignored for now. 48 29 49 30 def initialize(proxy = nil, agent = nil) … … 52 33 @debug_dev = nil 53 34 @session_manager = SessionManager.new 54 name = 'no_proxy' 55 @no_proxy = ENV[name] || ENV[name.upcase] 35 @no_proxy = nil 36 end 37 38 def set_basic_auth(uri, user_id, passwd) 39 # ignored for now. 40 end 41 42 def set_cookie_store(filename) 43 # ignored for now. 56 44 end 57 45 58 46 def reset(url) 59 # ignored. 47 # ignored for now. 48 end 49 50 def reset_all 51 # ignored for now. 60 52 end 61 53 … … 135 127 end 136 128 end 129 130 class SessionManager 131 attr_accessor :connect_timeout 132 attr_accessor :send_timeout 133 attr_accessor :receive_timeout 134 end 135 136 class Response 137 attr_reader :content 138 attr_reader :status 139 attr_reader :reason 140 attr_reader :contenttype 141 142 def initialize(res) 143 @status = res.code.to_i 144 @reason = res.message 145 @contenttype = res['content-type'] 146 @content = res.body 147 end 148 end 137 149 end 138 150