The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

App::Cerberus::Plugin::BrowserDetect - Add user-agent information to App::Cerberus

VERSION

version 0.11

DESCRIPTION

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"
}

REQUEST PARAMS

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)

CONFIGURATION

This plugin takes no configuration options:

plugins:
  - BrowserDetect

AUTHOR

Clinton Gormley <drtech@cpan.org>

COPYRIGHT AND LICENSE

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.