Module: Ext::NegociateContent

Extended by:
Equipment
Defined in:
lib/ext/negociate_content.rb

Overview

Returns an available content-type depending on what the browser wants.

Content-type negiciation stategy

  • Look for client’s ACCEPT

  • If an extension is specifies, prioritize it’s content-type (if available)

Usage

TODO

  • Docs

  • Accept, Accept-Language, Accept-Charset et Accept-Encoding

  • q=0.000 #=> not selected

Defined Under Namespace

Modules: Base, CClassMethods Classes: ContentSelector

Constant Summary

Constants included from Equipment

Equipment::DATA_PATH, Equipment::LIB_PATH

Instance Attribute Summary

Attributes included from Equipment

#debug

Method Summary

Methods included from Equipment

dependencies, depends_on, equip, equip_all, global_extensions, included