| 112 | | @proxy = value |
|---|
| | 112 | @client.proxy = value |
|---|
| | 113 | end |
|---|
| | 114 | @client.no_proxy = @options["no_proxy"] |
|---|
| | 115 | @options.add_hook("no_proxy") do |key, value| |
|---|
| | 116 | @client.no_proxy = value |
|---|
| | 117 | end |
|---|
| | 118 | set_basic_auth(@options["basic_auth"]) |
|---|
| | 119 | @options.add_hook("basic_auth") do |key, value| |
|---|
| | 120 | set_basic_auth(value) |
|---|
| | 121 | end |
|---|
| | 122 | @client.protocol_version = @options["protocol_version"] |
|---|
| | 123 | @options.add_hook("protocol_version") do |key, value| |
|---|
| | 124 | @client.protocol_version = value |
|---|
| | 125 | end |
|---|
| | 126 | set_cookie_store_file(@options["cookie_store_file"]) |
|---|
| | 127 | @options.add_hook("cookie_store_file") do |key, value| |
|---|
| | 128 | set_cookie_store_file(value) |
|---|
| | 129 | end |
|---|
| | 130 | set_ssl_config(@options["ssl_config"]) |
|---|
| | 131 | @options.add_hook("ssl_config") do |key, value| |
|---|
| | 132 | set_ssl_config(@options["ssl_config"]) |
|---|
| | 144 | end |
|---|
| | 145 | |
|---|
| | 146 | def set_basic_auth(value) |
|---|
| | 147 | return unless value |
|---|
| | 148 | value.each do |url, userid, passwd| |
|---|
| | 149 | @client.set_basic_auth(url, userid, passwd) |
|---|
| | 150 | end |
|---|
| | 151 | end |
|---|
| | 152 | |
|---|
| | 153 | def set_cookie_store_file(value) |
|---|
| | 154 | return unless value |
|---|
| | 155 | raise NotImplementedError.new |
|---|
| | 156 | end |
|---|
| | 157 | |
|---|
| | 158 | def set_ssl_config(value) |
|---|
| | 159 | return unless value |
|---|
| | 160 | raise NotImplementedError.new |
|---|