Module: HTTPigeon

Extended by:
HTTPigeon
Included in:
HTTPigeon
Defined in:
lib/httpigeon.rb,
lib/httpigeon/logger.rb,
lib/httpigeon/request.rb,
lib/httpigeon/version.rb,
lib/httpigeon/response.rb,
lib/httpigeon/log_redactor.rb,
lib/httpigeon/configuration.rb,
lib/httpigeon/circuit_breaker/fuse.rb,
lib/httpigeon/circuit_breaker/errors.rb,
lib/httpigeon/middleware/circuit_breaker.rb,
lib/httpigeon/circuit_breaker/fuse_config.rb,
lib/httpigeon/middleware/httpigeon_logger.rb,
lib/httpigeon/circuit_breaker/memory_store.rb

Defined Under Namespace

Modules: CircuitBreaker, FilterPatterns, Middleware Classes: Configuration, InvalidConfigurationError, LogRedactor, Logger, Request, Response

Constant Summary collapse

VERSION =
"2.3.2".freeze

Instance Method Summary collapse

Instance Method Details

#configure {|@config| ... } ⇒ Object

Yields:

  • (@config)


46
47
48
49
50
51
52
53
54
# File 'lib/httpigeon.rb', line 46

def configure
  @config = HTTPigeon::Configuration.new

  yield(@config) if block_given?

  validate_config(@config)

  @config.freeze
end

#stdout_loggerObject



56
57
58
# File 'lib/httpigeon.rb', line 56

def stdout_logger
  @stdout_logger ||= ::Logger.new($stdout)
end