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/error_helpers.rb,
lib/namira/query_builder.rb,
lib/namira/async/performer.rb,
lib/namira/async/serializer.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/errors/async_error.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,
lib/namira/async/active_job/request_job.rb,
lib/namira/async/sidekiq/request_worker.rb

Overview

A Ruby HTTP client

Defined Under Namespace

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

Constant Summary collapse

VERSION =

The current version of Namira

'1.5.0'.freeze

Class Method Summary collapse

Class Method Details

.configObject



80
81
82
83
# File 'lib/namira/config.rb', line 80

def self.config
  @config ||= Config.new
  @config
end

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

The shared configuration

Yields:



75
76
77
78
# File 'lib/namira/config.rb', line 75

def self.configure
  yield(config) if block_given?
  config
end