Sha256: 95506b90a3f04b7a88f2eb9c9753d8964cdef33e78d13b226a8b34eac555b56f

Contents?: true

Size: 898 Bytes

Versions: 1

Compression:

Stored size: 898 Bytes

Contents

# bandwidth
#
# This file was automatically generated by APIMATIC v2.0
# ( https://apimatic.io ).

module Bandwidth
  # Http response received.
  class HttpResponse
    attr_reader :status_code, :reason_phrase, :headers, :raw_body, :request

    # The constructor
    # @param [Integer] The status code returned by the server.
    # @param [String] The reason phrase returned by the server.
    # @param [Hash] The headers sent by the server in the response.
    # @param [String] The raw body of the response.
    # @param [HttpRequest] The request that resulted in this response.
    def initialize(status_code,
                   reason_phrase,
                   headers,
                   raw_body,
                   request)
      @status_code = status_code
      @reason_phrase = reason_phrase
      @headers = headers
      @raw_body = raw_body
      @request = request
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bandwidth-sdk-0.1.0 lib/bandwidth/http/http_response.rb