Sha256: 500f2948995f2e2c82fde5ea447f4c396e04307c59a328780b84afd4f5086a15

Contents?: true

Size: 476 Bytes

Versions: 9

Compression:

Stored size: 476 Bytes

Contents

require 'acfs/response/formats'

module Acfs

  # This represents a response. In addition to an standard HTTP
  # it has a field `data` for storing the encoded body.
  #
  class Response
    attr_accessor :data
    attr_reader :request, :status, :headers, :body

    include Response::Formats

    def initialize(request, status = 200, headers = {}, body = nil)
      @request = request
      @status  = status
      @headers = headers
      @body    = body
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
acfs-0.10.0 lib/acfs/response.rb
acfs-0.9.0 lib/acfs/response.rb
acfs-0.8.0 lib/acfs/response.rb
acfs-0.7.0 lib/acfs/response.rb
acfs-0.6.0 lib/acfs/response.rb
acfs-0.5.1 lib/acfs/response.rb
acfs-0.5.0 lib/acfs/response.rb
acfs-0.4.0 lib/acfs/response.rb
acfs-0.3.0 lib/acfs/response.rb