App::Cerberus::Plugin::BrowserDetect - Add user-agent information to App::Cerberus
version 0.11
This plugin uses HTTP::BrowserDetect to add information about the user agent to Cerberus. For instance:
"ua": { "is_robot": 0, "is_mobile": 0, "is_tablet": 1, "version": { "minor": ".1", "full": 5.1, "major": "5" }, "browser": "safari", "device": "ipad", "browser_properties": [ "ios", "iphone", "ipod", "mobile", "safari", "device" ], "os": "iOS" }
User-Agent information is returned when an User-Agent value is passed in:
curl http://host:port/?ua=Mozilla%2F5.0 (compatible%3B Googlebot%2F2.1%3B %2Bhttp%3A%2F%2Fwww.google.com%2Fbot.html)
This plugin takes no configuration options:
plugins: - BrowserDetect
Clinton Gormley <drtech@cpan.org>
This software is copyright (c) 2014 by Clinton Gormley.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install App::Cerberus, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Cerberus
CPAN shell
perl -MCPAN -e shell install App::Cerberus
For more information on module installation, please visit the detailed CPAN module installation guide.