Module: Namira

Defined in:
lib/namira.rb,
lib/namira/env.rb,
lib/namira/stack.rb,
lib/namira/config.rb,
lib/namira/errors.rb,
lib/namira/request.rb,
lib/namira/version.rb,
lib/namira/response.rb,
lib/namira/middleware.rb,
lib/namira/query_builder.rb,
lib/namira/errors/base_error.rb,
lib/namira/errors/http_error.rb,
lib/namira/middleware/config.rb,
lib/namira/middleware/header.rb,
lib/namira/middleware/logger.rb,
lib/namira/middleware/timing.rb,
lib/namira/middleware/network.rb,
lib/namira/middleware/timeout.rb,
lib/namira/errors/timeout_error.rb,
lib/namira/middleware/responder.rb,
lib/namira/errors/redirect_error.rb,
lib/namira/middleware/redirector.rb,
lib/namira/errors/invalid_uri_error.rb

Overview

A Ruby HTTP client

Defined Under Namespace

Modules: Errors, Middleware Classes: Config, Env, QueryBuilder, Request, Response, Stack

Constant Summary collapse

VERSION =

The current version of Namira

'1.1.0'.freeze

Class Method Summary collapse

Class Method Details

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

The shared configuration

Yields:

  • (@config)


64
65
66
67
68
# File 'lib/namira/config.rb', line 64

def self.configure
  @config ||= Config.new
  yield(@config) if block_given?
  @config
end