Skip to content

struct Athena::Framework::Listeners::Format
inherits Struct #

Attempts to determine the best format for the current request based on its Accept HTTP header and the format priority configuration.

AHTTP::Request::FORMATS is used to determine the related format from the request's MIME type.

See the Getting Started docs for more information.

Constructors#

.new(format_negotiator : ATH::View::FormatNegotiator)#

View source

Methods#

#on_request(event : AHK::Events::Request) : Nil#

View source