Module: ChimeraHttpClient

Defined in:
lib/chimera_http_client/connection.rb,
lib/chimera_http_client.rb,
lib/chimera_http_client/base.rb,
lib/chimera_http_client/error.rb,
lib/chimera_http_client/queue.rb,
lib/chimera_http_client/request.rb,
lib/chimera_http_client/version.rb,
lib/chimera_http_client/response.rb,
lib/chimera_http_client/deserializer.rb

Overview

This two JSON deserializers are the default ones

To use custom deserializers, pass them as param to Connection.new or Queue.new: ‘deserializers: { error: your_error_deserializer, response: your_response_deserializer }` (you might be able to use the same for both cases)

a Deserializer has to be an object on which the method ‘call` with the parameter `body` can be called: `custom_deserializer.call(body)` where `body` is the response body (in the default case a JSON object)

Defined Under Namespace

Classes: BadRequestError, Base, ClientError, Connection, ConnectionError, Deserializer, Error, ForbiddenError, JsonParserError, MethodNotAllowedError, NotFoundError, ParameterMissingError, Queue, RedirectionError, Request, ResourceConflictError, Response, ServerError, TimeoutError, UnauthorizedError, UnprocessableEntityError

Constant Summary collapse

VERSION =
"1.5.0".freeze