Module: Mindee::HTTP

Defined in:
lib/mindee.rb,
lib/mindee/http/error.rb,
lib/mindee/http/endpoint.rb,
lib/mindee/http/response_validation.rb

Overview

Mindee internal http module.

Defined Under Namespace

Modules: Error, ResponseValidation Classes: Endpoint

Constant Summary collapse

API_KEY_ENV_NAME =

API key’s default environment key name.

'MINDEE_API_KEY'
API_KEY_DEFAULT =

API key’s default value.

nil
BASE_URL_ENV_NAME =

Base URL default environment key name.

'MINDEE_BASE_URL'
BASE_URL_DEFAULT =

Base URL’s default value.

'https://api.mindee.net/v1'
REQUEST_TIMEOUT_ENV_NAME =

HTTP request timeout default environment key name.

'MINDEE_REQUEST_TIMEOUT'
TIMEOUT_DEFAULT =

HTTP request timeout default value.

120
USER_AGENT =

Default value for the user agent.

"mindee-api-ruby@v#{Mindee::VERSION} ruby-v#{RUBY_VERSION} #{Mindee::PLATFORM}"