This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sat Nov 21 08:47:44 -0800 2009 | |
| |
LICENSE | Fri Jun 05 13:28:35 -0700 2009 | |
| |
Manifest | Sat Nov 21 07:47:52 -0800 2009 | |
| |
README | Sat Nov 21 08:43:09 -0800 2009 | |
| |
Rakefile | Sat Nov 21 07:47:52 -0800 2009 | |
| |
examples.rb | Mon Jun 08 10:09:38 -0700 2009 | |
| |
lib/ | Sat Nov 21 08:43:09 -0800 2009 | |
| |
rack-accept-media-types.gemspec | Sat Nov 21 08:47:44 -0800 2009 | |
| |
specs.watchr | Sat Nov 21 07:47:52 -0800 2009 | |
| |
test/ | Sat Nov 21 08:43:09 -0800 2009 |
README
===== Sumarry Rack convenience middleware for simplified handling of Accept header (env['HTTP_ACCEPT']). Allows ordering of its values (accepted media types) according to their "quality" (preference level). This wrapper is typically used to determine the request's prefered media type (see example below). ===== Install gem install rack-accept-media-types --source http://gemcutter.org ===== Examples env['HTTP_ACCEPT'] #=> 'application/xml;q=0.8,text/html,text/plain;q=0.9' req = Rack::Request.new(env) req.accept_media_types #=> ['text/html', 'text/plain', 'application/xml'] req.accept_media_types.prefered #=> 'text/html' ===== Links source:: http://github.com/mynyml/rack-accept-media-types rdocs:: http://docs.github.com/mynyml/rack-accept-media-types







