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-3.0.2 lib/fastly/response_object.rb
fastly-3.0.1 lib/fastly/response_object.rb
fastly-3.0.0 lib/fastly/response_object.rb
fastly-2.5.3 lib/fastly/response_object.rb
fastly-2.5.2 lib/fastly/response_object.rb
fastly-2.5.1 lib/fastly/response_object.rb
fastly-2.5.0 lib/fastly/response_object.rb
fastly-2.4.0 lib/fastly/response_object.rb
fastly-2.3.1 lib/fastly/response_object.rb
fastly-2.3.0 lib/fastly/response_object.rb
fastly-2.2.0 lib/fastly/response_object.rb
fastly-2.1.0 lib/fastly/response_object.rb
fastly-2.0.0 lib/fastly/response_object.rb
fastly-1.15.0 lib/fastly/response_object.rb
fastly-1.14.0 lib/fastly/response_object.rb
fastly-1.13.2 lib/fastly/response_object.rb
fastly-1.13.1 lib/fastly/response_object.rb
fastly-1.13.0 lib/fastly/response_object.rb
fastly-1.12.0 lib/fastly/response_object.rb
fastly-1.11.0 lib/fastly/response_object.rb