class Fastly::RequestSetting

customize request handing. Best used with conditions

Attributes

action[RW]

Allows you to terminate request handling and immediately perform an action. When set it can be lookup or pass (ignore the cache completely)

bypass_busy_wait[RW]

Disable collapsed forwarding, so you don't wait for other objects to origin

default_host[RW]

Sets the host header

force_miss[RW]

Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable

force_ssl[RW]

Force the request to use SSL, redirecting a non-SSL request to SSL.

geo_headers[RW]

Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers

hash_keys[RW]

Comma separated list of varnish request object fields that should be in the hash key

max_stale_age[RW]

How old an object is allowed to be to serve stale-if-error or state-while-revalidate

name[RW]

The name of the request setting

request_condition[RW]
service_id[RW]

The id of the service this belongs to.

time_support[RW]
timer_support[RW]
Injects the X-Timer info into the request for viewing origin fetch

durations

version[RW]

The number of the version this belongs to.

xff[RW]

X-Forwarded-For: should be clear, leave, append, append_all, or overwrite

Public Class Methods

path() click to toggle source

:attr: request_condition

Name of condition object used to test whether or not these settings should be used

# File lib/fastly/request_setting.rb, line 85
def self.path
  Util.class_to_path(self, true)
end