Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Changeset 1093

Show
Ignore:
Timestamp:
12/02/03 00:14:39 (5 years ago)
Author:
nahi
Message:

* add fake interface to follow http-access2.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/soap/netHttpClient.rb

    r1058 r1093  
    2525  attr_accessor :no_proxy 
    2626  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. 
    4829 
    4930  def initialize(proxy = nil, agent = nil) 
     
    5233    @debug_dev = nil 
    5334    @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. 
    5644  end 
    5745 
    5846  def reset(url) 
    59     # ignored. 
     47    # ignored for now. 
     48  end 
     49 
     50  def reset_all 
     51    # ignored for now. 
    6052  end 
    6153 
     
    135127    end 
    136128  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 
    137149end 
    138150