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