Sha256: 20a611b9a82f3e765fdfbb93e2bbad37638a5f4f6bf98ab7fd139c5363cc2202

Contents?: true

Size: 1.1 KB

Versions: 37

Compression:

Stored size: 1.1 KB

Contents

class Fastly
  # Set up a response object. Best used with conditions.
  class ResponseObject < BelongsToServiceAndVersion
    attr_accessor :service_id, :name, :cache_condition, :request_condition, :status, :response, :content, :content_type

    ##
    # :attr: service_id
    #
    # The id of the service this belongs to.

    ##
    # :attr: version
    #
    # The number of the version this belongs to.

    ##
    # :attr: name
    #
    # The name of the response object

    ##
    # :attr: cache_condition
    #
    # Name of the cache condition used to test whether this response object
    # should be used.

    ##
    # :attr: request_condition
    #
    # Name of the request condition used to test whether this response object
    # should be used.

    ##
    # :attr: status
    #
    # The HTTP status code, defaults to 200

    ##
    # :attr: response
    #
    # The HTTP response, defaults to "Ok"

    ##
    # :attr: content
    #
    # The content to deliver for the response object, can be empty.

    ##
    # :attr: content_type
    #
    # The MIME type of the content, can be empty.
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
fastly-1.10.0 lib/fastly/response_object.rb
fastly-1.9.0 lib/fastly/response_object.rb
fastly-1.8.0 lib/fastly/response_object.rb
fastly-1.7.0 lib/fastly/response_object.rb
fastly-1.6.1 lib/fastly/response_object.rb
fastly-1.6.0 lib/fastly/response_object.rb
fastly-1.5.0 lib/fastly/response_object.rb
fastly-1.4.3 lib/fastly/response_object.rb
fastly-1.4.2 lib/fastly/response_object.rb
fastly-1.4.1 lib/fastly/response_object.rb
fastly-1.4.0 lib/fastly/response_object.rb
fastly-1.3.0 lib/fastly/response_object.rb
fastly-1.2.3 lib/fastly/response_object.rb
fastly-1.2.2 lib/fastly/response_object.rb
fastly-1.2.1 lib/fastly/response_object.rb
fastly-1.2.0 lib/fastly/response_object.rb
fastly-1.1.5 lib/fastly/response_object.rb