Sha256: 347b7993232482fe2cefefbf912dcbb48950c1faee2fc24a0e840e10a65ce212
Contents?: true
Size: 764 Bytes
Versions: 5
Compression:
Stored size: 764 Bytes
Contents
require 'acfs/response/formats' require 'acfs/response/status' require 'active_support/core_ext/module/delegation' 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 :headers, :body, :request, :status include Response::Formats include Response::Status #delegate :status, :status_message, :success?, :modified?, :timed_out?, # :response_body, :response_headers, :response_code, :headers, # to: :response def initialize(request, data = {}) @request = request @status = data[:status] @headers = data[:headers] @body = data[:body] end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
acfs-0.18.0 | lib/acfs/response.rb |
acfs-0.17.0 | lib/acfs/response.rb |
acfs-0.16.0 | lib/acfs/response.rb |
acfs-0.15.0 | lib/acfs/response.rb |
acfs-0.14.0 | lib/acfs/response.rb |