Sha256: 25236cfcb966db960da4876a6a887cef6314f3da2f74ee50ffac72267890f971

Contents?: true

Size: 440 Bytes

Versions: 18

Compression:

Stored size: 440 Bytes

Contents

# Exactly like Basic, but uses JSON encoding for request body
# if applicable
module ApiClient
  module Connection
    class Json < Basic
      def finalize_handler
        @handler.use     Middlewares::Request::Logger, ApiClient.logger if ApiClient.logger
        @handler.use     Middlewares::Request::Json
        @handler.use     Faraday::Request::UrlEncoded
        @handler.adapter Faraday.default_adapter
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
api_client-0.6.0-java lib/api_client/connection/json.rb
api_client-0.6.0 lib/api_client/connection/json.rb
api_client-0.5.26-java lib/api_client/connection/json.rb
api_client-0.5.26 lib/api_client/connection/json.rb
api_client-0.5.25-java lib/api_client/connection/json.rb
api_client-0.5.25 lib/api_client/connection/json.rb
api_client-0.5.24 lib/api_client/connection/json.rb
api_client-0.5.22 lib/api_client/connection/json.rb
api_client-0.5.21 lib/api_client/connection/json.rb
api_client-0.5.20 lib/api_client/connection/json.rb
api_client-0.5.19 lib/api_client/connection/json.rb
api_client-0.5.18 lib/api_client/connection/json.rb
api_client-0.5.17 lib/api_client/connection/json.rb
api_client-0.5.16 lib/api_client/connection/json.rb
api_client-0.5.15 lib/api_client/connection/json.rb
api_client-0.5.14 lib/api_client/connection/json.rb
api_client-0.5.13 lib/api_client/connection/json.rb
api_client-0.5.12 lib/api_client/connection/json.rb