Skip to content

struct Athena::Negotiation::AcceptEncoding
inherits Athena::Negotiation::BaseAccept #

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"

Methods#

#coding : String#

Returns the content coding this AcceptEncoding header represents.

I.e. #header minus the #quality and #parameters.

View source