struct Athena::Negotiation::AcceptEncoding
- Athena::Negotiation::AcceptEncoding
- Athena::Negotiation::BaseAccept
- Struct
- Value
- Object
Overview
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"
Defined in:
accept_encoding.crInstance Method Summary
-
#coding : String
Returns the content coding this
AcceptEncoding
header represents.
Instance methods inherited from struct Athena::Negotiation::BaseAccept
header : String
header,
normalized_header : String
normalized_header,
parameters : Hash(String, String)
parameters,
quality : Float32
quality
Constructor methods inherited from struct Athena::Negotiation::BaseAccept
new(header : String)
new
Instance Method Detail
def coding : String
#
Returns the content coding this AcceptEncoding
header represents.
I.e. #header
minus the #quality
and #parameters
.