Module Excon
In: lib/excon.rb
lib/excon/errors.rb
lib/excon/response.rb
lib/excon/connection.rb

Methods

mock   mock=   new   ssl_verify_peer=   stub   stubs  

Classes and Modules

Module Excon::Errors
Class Excon::Connection
Class Excon::Response

Constants

VERSION = '0.6.3'
CHUNK_SIZE = 1048576

Attributes

ssl_ca_path  [RW]  @return [String] The filesystem path to the SSL Certificate Authority
ssl_verify_peer  [R]  @return [true, false] Whether or not to verify the peer‘s SSL certificate / chain

Public Class methods

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

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]