Plack port of Django's minidetector middleware
Perl
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/Plack/Middleware
t
.gitignore
Changes
MANIFEST
Makefile.PL
README

README

Plack-Middleware-MobileDetector version 0.0.1
============================================

Plack::Middleware::MobileDetector is a Plack port of the Django 
minidetector middleware, <http://code.google.com/p/minidetector/>.
When in use, the User-Agent is examined for a variety of known
indicators that a mobile device (such as a Kindle or a smartphone)
is in use. If this test is positive, the middleware will insert
a true 'psgix.mobile_detected' value into the environment and set
a "Vary: User-Agent" header.

Following the lead of minidetector, a number of gaming devices 
will also be reported as mobile devices.

INSTALLATION

To install this module type the following:

   perl Makefile.PL
   make
   make test
   make install

DEPENDENCIES

This module requires these other modules and libraries:

   Plack::Request
   Plack::Response
   Plack::Middleware

COPYRIGHT AND LICENCE

Copyright (C) 2009 by Steve Cook

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.8.9 or,
at your option, any later version of Perl 5 you may have available.