Skip to content

class Athena::Routing::View::FormatNegotiator
inherits Athena::Negotiation::Negotiator #

An extension of ANG::Negotiator that supports resolving the format based on an applications ART::Config::ContentNegotiation rules.

See the negotiation component for more information.

Class methods#

.new(request_store : ART::RequestStore, config : ART::Config::ContentNegotiation?, mime_types : Hash(String, Array(String)) = Hash(String, Array(String)).new) #

View source


#best(header : String, priorities : Indexable(String)? = nil, strict : Bool = false) : HeaderType? #

:inherit: ameba:disable Metrics/CyclomaticComplexity

View source