class Vary
Represents the vary header, which specifies the request headers a server considers when determining the response.
The vary header is used in HTTP responses to indicate which request headers affect the selected response. It allows caches to differentiate stored responses based on specific request headers.
Definitions
def initialize(value)
Initializes a Vary header with the given value. The value is split into distinct entries and converted to lowercase for normalization.
Signature
-
parameter
valueString the raw header value containing request header names separated by commas.
Implementation
def initialize(value)
super(value.downcase)
end
def <<(value)
Adds one or more comma-separated values to the vary header. The values are converted to lowercase for normalization.
Signature
-
parameter
valueString the value or values to add, separated by commas.
Implementation
def << value
super(value.downcase)
end