Module: Ethon::Easy::Options Private
- Included in:
- Ethon::Easy
- Defined in:
- lib/ethon/easy/options.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
This module contains the logic and knowledge about the available options on easy.
Instance Attribute Summary collapse
- #url ⇒ Object private
Instance Method Summary collapse
-
#cainfo=(value) ⇒ void
private
Sets cainfo option.
-
#capath=(value) ⇒ void
private
Sets capath option.
-
#connecttimeout=(value) ⇒ void
private
Sets connecttimeout option.
-
#connecttimeout_ms=(value) ⇒ void
private
Sets connecttimeout_ms option.
-
#copypostfields=(value) ⇒ void
private
Sets copypostfields option.
-
#customrequest=(value) ⇒ void
private
Sets customrequest option.
-
#dns_cache_timeout=(value) ⇒ void
private
Sets dns_cache_timeout option.
-
#followlocation=(value) ⇒ void
private
Sets followlocation option.
-
#forbid_reuse=(value) ⇒ void
private
Sets forbid_reuse option.
-
#httpauth=(value) ⇒ void
private
Sets httpauth option.
-
#httpget=(value) ⇒ void
private
Sets httpget option.
-
#httppost=(value) ⇒ void
private
Sets httppost option.
-
#infilesize=(value) ⇒ void
private
Sets infilesize option.
-
#interface=(value) ⇒ void
private
Sets interface option.
-
#keypasswd=(value) ⇒ void
private
Sets keypasswd option.
-
#maxredirs=(value) ⇒ void
private
Sets maxredirs option.
-
#nobody=(value) ⇒ void
private
Sets nobody option.
-
#nosignal=(value) ⇒ void
private
Sets nosignal option.
-
#postfieldsize=(value) ⇒ void
private
Sets postfieldsize option.
-
#proxy=(value) ⇒ void
private
Sets proxy option.
-
#proxyauth=(value) ⇒ void
private
Sets proxyauth option.
-
#proxyport=(value) ⇒ void
private
Sets proxyport option.
-
#proxytype=(value) ⇒ void
private
Sets proxytype option.
-
#proxyuserpwd=(value) ⇒ void
private
Sets proxyuserpwd option.
-
#readdata=(value) ⇒ void
private
Sets readdata option.
-
#readfunction=(value) ⇒ void
private
Sets readfunction option.
-
#ssl_verifyhost=(value) ⇒ void
private
Sets ssl_verifyhost option.
-
#ssl_verifypeer=(value) ⇒ void
private
Sets ssl_verifypeer option.
-
#sslcert=(value) ⇒ void
private
Sets sslcert option.
-
#sslcerttype=(value) ⇒ void
private
Sets sslcerttype option.
-
#sslkey=(value) ⇒ void
private
Sets sslkey option.
-
#sslkeytype=(value) ⇒ void
private
Sets sslkeytype option.
-
#sslversion=(value) ⇒ void
private
Sets sslversion option.
-
#timeout=(value) ⇒ void
private
Sets timeout option.
-
#timeout_ms=(value) ⇒ void
private
Sets timeout_ms option.
-
#upload=(value) ⇒ void
private
Sets upload option.
-
#useragent=(value) ⇒ void
private
Sets useragent option.
-
#userpwd=(value) ⇒ void
private
Sets userpwd option.
-
#verbose=(value) ⇒ void
private
Sets verbose option.
Instance Attribute Details
#url ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'lib/ethon/easy/options.rb', line 10 def url @url end |
Instance Method Details
#cainfo=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets cainfo option.
20 21 22 |
# File 'lib/ethon/easy/options.rb', line 20 def cainfo=(value) Curl.set_option(:cainfo, value_for(value, :string), handle) end |
#capath=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets capath option.
32 33 34 |
# File 'lib/ethon/easy/options.rb', line 32 def capath=(value) Curl.set_option(:capath, value_for(value, :string), handle) end |
#connecttimeout=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets connecttimeout option.
44 45 46 |
# File 'lib/ethon/easy/options.rb', line 44 def connecttimeout=(value) Curl.set_option(:connecttimeout, value_for(value, :int), handle) end |
#connecttimeout_ms=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets connecttimeout_ms option.
56 57 58 |
# File 'lib/ethon/easy/options.rb', line 56 def connecttimeout_ms=(value) Curl.set_option(:connecttimeout_ms, value_for(value, :int), handle) end |
#copypostfields=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets copypostfields option.
68 69 70 |
# File 'lib/ethon/easy/options.rb', line 68 def copypostfields=(value) Curl.set_option(:copypostfields, value_for(value, :string), handle) end |
#customrequest=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets customrequest option.
80 81 82 |
# File 'lib/ethon/easy/options.rb', line 80 def customrequest=(value) Curl.set_option(:customrequest, value_for(value, :string), handle) end |
#dns_cache_timeout=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets dns_cache_timeout option.
92 93 94 |
# File 'lib/ethon/easy/options.rb', line 92 def dns_cache_timeout=(value) Curl.set_option(:dns_cache_timeout, value_for(value, :int), handle) end |
#followlocation=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets followlocation option.
104 105 106 |
# File 'lib/ethon/easy/options.rb', line 104 def followlocation=(value) Curl.set_option(:followlocation, value_for(value, :bool), handle) end |
#forbid_reuse=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets forbid_reuse option.
116 117 118 |
# File 'lib/ethon/easy/options.rb', line 116 def forbid_reuse=(value) Curl.set_option(:forbid_reuse, value_for(value, :bool), handle) end |
#httpauth=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets httpauth option.
128 129 130 |
# File 'lib/ethon/easy/options.rb', line 128 def httpauth=(value) Curl.set_option(:httpauth, value_for(value, :enum, :httpauth), handle) end |
#httpget=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets httpget option.
140 141 142 |
# File 'lib/ethon/easy/options.rb', line 140 def httpget=(value) Curl.set_option(:httpget, value_for(value, :bool), handle) end |
#httppost=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets httppost option.
152 153 154 |
# File 'lib/ethon/easy/options.rb', line 152 def httppost=(value) Curl.set_option(:httppost, value_for(value, :string), handle) end |
#infilesize=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets infilesize option.
164 165 166 |
# File 'lib/ethon/easy/options.rb', line 164 def infilesize=(value) Curl.set_option(:infilesize, value_for(value, :int), handle) end |
#interface=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets interface option.
176 177 178 |
# File 'lib/ethon/easy/options.rb', line 176 def interface=(value) Curl.set_option(:interface, value_for(value, :string), handle) end |
#keypasswd=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets keypasswd option.
188 189 190 |
# File 'lib/ethon/easy/options.rb', line 188 def keypasswd=(value) Curl.set_option(:keypasswd, value_for(value, :string), handle) end |
#maxredirs=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets maxredirs option.
200 201 202 |
# File 'lib/ethon/easy/options.rb', line 200 def maxredirs=(value) Curl.set_option(:maxredirs, value_for(value, :int), handle) end |
#nobody=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets nobody option.
212 213 214 |
# File 'lib/ethon/easy/options.rb', line 212 def nobody=(value) Curl.set_option(:nobody, value_for(value, :bool), handle) end |
#nosignal=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets nosignal option.
224 225 226 |
# File 'lib/ethon/easy/options.rb', line 224 def nosignal=(value) Curl.set_option(:nosignal, value_for(value, :bool), handle) end |
#postfieldsize=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets postfieldsize option.
236 237 238 |
# File 'lib/ethon/easy/options.rb', line 236 def postfieldsize=(value) Curl.set_option(:postfieldsize, value_for(value, :int), handle) end |
#proxy=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets proxy option.
248 249 250 |
# File 'lib/ethon/easy/options.rb', line 248 def proxy=(value) Curl.set_option(:proxy, value_for(value, :string), handle) end |
#proxyauth=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets proxyauth option.
260 261 262 |
# File 'lib/ethon/easy/options.rb', line 260 def proxyauth=(value) Curl.set_option(:proxyauth, value_for(value, :string), handle) end |
#proxyport=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets proxyport option.
272 273 274 |
# File 'lib/ethon/easy/options.rb', line 272 def proxyport=(value) Curl.set_option(:proxyport, value_for(value, :int), handle) end |
#proxytype=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets proxytype option.
284 285 286 |
# File 'lib/ethon/easy/options.rb', line 284 def proxytype=(value) Curl.set_option(:proxytype, value_for(value, :string), handle) end |
#proxyuserpwd=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets proxyuserpwd option.
296 297 298 |
# File 'lib/ethon/easy/options.rb', line 296 def proxyuserpwd=(value) Curl.set_option(:proxyuserpwd, value_for(value, :string), handle) end |
#readdata=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets readdata option.
308 309 310 |
# File 'lib/ethon/easy/options.rb', line 308 def readdata=(value) Curl.set_option(:readdata, value_for(value, :string), handle) end |
#readfunction=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets readfunction option.
320 321 322 |
# File 'lib/ethon/easy/options.rb', line 320 def readfunction=(value) Curl.set_option(:readfunction, value_for(value, :string), handle) end |
#ssl_verifyhost=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets ssl_verifyhost option.
332 333 334 |
# File 'lib/ethon/easy/options.rb', line 332 def ssl_verifyhost=(value) Curl.set_option(:ssl_verifyhost, value_for(value, :int), handle) end |
#ssl_verifypeer=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets ssl_verifypeer option.
344 345 346 |
# File 'lib/ethon/easy/options.rb', line 344 def ssl_verifypeer=(value) Curl.set_option(:ssl_verifypeer, value_for(value, :bool), handle) end |
#sslcert=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets sslcert option.
356 357 358 |
# File 'lib/ethon/easy/options.rb', line 356 def sslcert=(value) Curl.set_option(:sslcert, value_for(value, :string), handle) end |
#sslcerttype=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets sslcerttype option.
368 369 370 |
# File 'lib/ethon/easy/options.rb', line 368 def sslcerttype=(value) Curl.set_option(:sslcerttype, value_for(value, :string), handle) end |
#sslkey=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets sslkey option.
380 381 382 |
# File 'lib/ethon/easy/options.rb', line 380 def sslkey=(value) Curl.set_option(:sslkey, value_for(value, :string), handle) end |
#sslkeytype=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets sslkeytype option.
392 393 394 |
# File 'lib/ethon/easy/options.rb', line 392 def sslkeytype=(value) Curl.set_option(:sslkeytype, value_for(value, :string), handle) end |
#sslversion=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets sslversion option.
404 405 406 |
# File 'lib/ethon/easy/options.rb', line 404 def sslversion=(value) Curl.set_option(:sslversion, value_for(value, :enum, :sslversion), handle) end |
#timeout=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets timeout option.
416 417 418 |
# File 'lib/ethon/easy/options.rb', line 416 def timeout=(value) Curl.set_option(:timeout, value_for(value, :int), handle) end |
#timeout_ms=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets timeout_ms option.
428 429 430 |
# File 'lib/ethon/easy/options.rb', line 428 def timeout_ms=(value) Curl.set_option(:timeout_ms, value_for(value, :int), handle) end |
#upload=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets upload option.
440 441 442 |
# File 'lib/ethon/easy/options.rb', line 440 def upload=(value) Curl.set_option(:upload, value_for(value, :bool), handle) end |
#useragent=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets useragent option.
465 466 467 |
# File 'lib/ethon/easy/options.rb', line 465 def useragent=(value) Curl.set_option(:useragent, value_for(value, :string), handle) end |
#userpwd=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets userpwd option.
477 478 479 |
# File 'lib/ethon/easy/options.rb', line 477 def userpwd=(value) Curl.set_option(:userpwd, value_for(value, :string), handle) end |
#verbose=(value) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Sets verbose option.
489 490 491 |
# File 'lib/ethon/easy/options.rb', line 489 def verbose=(value) Curl.set_option(:verbose, value_for(value, :bool), handle) end |