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

Methods

Classes and Modules

Module Excon::Errors
Class Excon::Connection
Class Excon::Response
Class Excon::SSLSocket
Class Excon::Socket
Class Excon::StandardInstrumentor

Constants

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'

Public Class methods

@return [Hash] defaults for Excon connections

Change defaults for Excon connections @return [Hash] defaults for Excon connections

Status of mocking

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

@return [String] The filesystem path to the SSL Certificate Authority

Change path to the SSL Certificate Authority @return [String] The filesystem path to the SSL Certificate Authority

@return [true, false] Whether or not to verify the peer‘s SSL certificate / chain

Change the status of ssl peer verification @see Excon#ssl_verify_peer (attr_reader)

push an additional stub onto the list to check for mock requests

  @param [Hash<Symbol, >] request params to match against, omitted params match all
  @param [Hash<Symbol, >] response params to return from matched request or block to call with params

get a list of defined stubs

[Validate]