struct

Athena::Negotiation::BaseAccept

Inherits Struct < Value < Object

Base type for properties/logic all Accept* headers share.

Constructors

new(header : String)
Source

Instance methods

header

Returns the full unaltered header self represents. E.x. text/html, unicode-1-1;q=0.8, or zh-Hans-CN.

Source
normalized_header

Returns a normalized version of the #header, excluding the #quality parameter.

This includes removing extraneous whitespace, and alphabetizing the #parameters.

Source
parameters

Returns any extension parameters included in the header self represents. E.x. charset=utf-8 or version=2.

Source
quality

Returns the quality value of the header self represents.

Source