Module: HttpStore

Extended by:
ActiveSupport::Autoload
Defined in:
lib/http_store.rb,
lib/http_store/client.rb,
lib/http_store/engine.rb,
lib/http_store/version.rb,
lib/http_store/http_log.rb,
lib/http_store/configuration.rb,
lib/http_store/helpers/storable.rb,
lib/http_store/helpers/requestable.rb,
lib/http_store/helpers/responseable.rb,
lib/http_store/job/http_log_store_job.rb,
lib/http_store/middleware/request_log.rb,
lib/generators/http_store/initializer_generator.rb

Defined Under Namespace

Modules: Helpers, Job, Middleware Classes: Client, Configuration, EncodingError, Engine, HttpLog, InitializerGenerator, RequestError

Constant Summary collapse

REQUEST_KEYS =
%w[http_method url data_type headers query_params data other_params force request_valid retry_times]
RESPONSE_KEYS =
%w[status_code response response_headers response_data response_valid response_code cache_response]
META_KEYS =
%w[request_digest client_type parent_id requestable_id requestable_type]
TMP_KEYS =
%w[requestable response_obj]
DIGEST_KEYS =
%w[http_method url data_type data other_params requestable_id requestable_type]
ALL_KEYS =
REQUEST_KEYS + RESPONSE_KEYS + META_KEYS + TMP_KEYS
STORE_KEYS =
REQUEST_KEYS + RESPONSE_KEYS + META_KEYS
VERSION =
"0.7.0"

Class Method Summary collapse

Class Method Details

.configObject



45
46
47
# File 'lib/http_store.rb', line 45

def config
  @config ||= Configuration.new
end

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

Yields:



49
50
51
# File 'lib/http_store.rb', line 49

def configure(&block)
  yield(config)
end