Sha256: 8887e0a5d6600efadd9207945135ab55763b8597ab7e7abac33251f8545b9778
Contents?: true
Size: 574 Bytes
Versions: 78
Compression:
Stored size: 574 Bytes
Contents
module Elasticsearch module Transport module Transport # Wraps the response from Elasticsearch. # class Response attr_reader :status, :body, :headers # @param status [Integer] Response status code # @param body [String] Response body # @param headers [Hash] Response headers def initialize(status, body, headers={}) @status, @body, @headers = status, body, headers @body = body.force_encoding('UTF-8') if body.respond_to?(:force_encoding) end end end end end
Version data entries
78 entries across 78 versions & 8 rubygems