Module | Excon |
In: |
lib/excon/socket.rb
lib/excon/errors.rb lib/excon/constants.rb lib/excon/response.rb lib/excon/standard_instrumentor.rb lib/excon/ssl_socket.rb lib/excon/connection.rb lib/excon.rb |
Define defaults first so they will be available to other files
CR_NL | = | "\r\n" |
DEFAULT_CA_FILE | = | File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "data", "cacert.pem")) |
DEFAULT_CHUNK_SIZE | = | 1048576 |
CHUNK_SIZE | = | DEFAULT_CHUNK_SIZE |
DEFAULT_NONBLOCK | = | OpenSSL::SSL::SSLSocket.public_method_defined?(:connect_nonblock) && OpenSSL::SSL::SSLSocket.public_method_defined?(:read_nonblock) && OpenSSL::SSL::SSLSocket.public_method_defined?(:write_nonblock) |
DEFAULT_RETRY_LIMIT | = | 4 |
FORCE_ENC | = | CR_NL.respond_to?(:force_encoding) |
HTTP_1_1 | = | " HTTP/1.1\r\n" |
HTTP_VERBS | = | %w{connect delete get head options post put trace} |
HTTPS | = | 'https' |
NO_ENTITY | = | [204, 205, 304].freeze |
REDACTED | = | 'REDACTED' |
VERSION | = | '0.16.5' |
Change the status of mocking false is the default and works as expected true returns a value from stubs or raises
@see Connection#initialize 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
Change path to the SSL Certificate Authority @return [String] The filesystem path to the SSL Certificate Authority
Change the status of ssl peer verification @see Excon#ssl_verify_peer (attr_reader)