Athena::Negotiation::AcceptEncoding
Inherits Athena::Negotiation::BaseAccept < Struct < Value < Object
Represents an Accept-Encoding header character set.
accept = ANG::AcceptEncoding.new "gzip; q = 0.5; key=value"
accept.header # => "gzip; q = 0.5; key=value"
accept.normalized_header # => "gzip; key=value"
accept.parameters # => {"key" => "value"}
accept.quality # => 0.5
accept.coding # => "gzip"
Instance methods
coding
Returns the content coding this AcceptEncoding header represents.
I.e. #header minus the #quality and #parameters.