Module: ApiRecipes::Settings

Defined in:
lib/api_recipes/settings.rb

Constant Summary collapse

GLOBAL_TIMEOUT =
1
DEFAULT =
{
    protocol: 'https',
    host: 'localhost',
    port: nil,
    base_url: nil,
    timeout: 3,
    on_bad_code: 'raise',
    endpoints: {},
    verify_with: nil,
    mime_type: nil
}
DEFAULT_ROUTE_ATTRIBUTES =
{
    verb: :get,
    route: 'yes',
    path: nil,
    ok_code: nil,
    timeout: DEFAULT[:timeout],
    on_bad_code: DEFAULT[:on_bad_code],
    mime_type: DEFAULT[:mime_type],
    verify_with: DEFAULT[:verify_with]
}
AVAILABLE_PARAMS_ENCODINGS =
%w(form params json body)