Module: Excon
- Defined in:
- lib/excon.rb,
lib/excon/errors.rb,
lib/excon/response.rb,
lib/excon/connection.rb
Defined Under Namespace
Modules: Errors Classes: Connection, Response
Constant Summary collapse
- VERSION =
'0.5.6'
- CHUNK_SIZE =
1 megabyte
1048576
Class Attribute Summary collapse
-
.ssl_ca_path ⇒ String
The filesystem path to the SSL Certificate Authority.
-
.ssl_verify_peer ⇒ true, false
Whether or not to verify the peer’s SSL certificate / chain.
Class Method Summary collapse
-
.new(url, params = {}) ⇒ Object
Initializes a new keep-alive session for a given remote host @param [String] url The destination URL @param [Hash<Symbol, >] params One or more option params to set on the Connection instance @return [Connection] A new Excon::Connection instance.
Class Attribute Details
.ssl_ca_path ⇒ String
Returns The filesystem path to the SSL Certificate Authority.
25 26 27 |
# File 'lib/excon.rb', line 25 def ssl_ca_path @ssl_ca_path end |
.ssl_verify_peer ⇒ true, false
Returns Whether or not to verify the peer’s SSL certificate / chain.
28 29 30 |
# File 'lib/excon.rb', line 28 def ssl_verify_peer @ssl_verify_peer end |
Class Method Details
.new(url, params = {}) ⇒ Object
Initializes a new keep-alive session for a given remote host
@param [String] url The destination URL
@param [Hash<Symbol, >] params One or more option params to set on the Connection instance
@return [Connection] A new Excon::Connection instance
38 39 40 |
# File 'lib/excon.rb', line 38 def new(url, params = {}) Excon::Connection.new(url, params) end |