Catalyst::TraitFor::Request::BrowserDetect - Browser detection for Catalyst::Requests
version 0.02
package MyApp; use Moose; use namespace::autoclean; use Catalyst; use CatalystX::RoleApplicator; extends 'Catalyst'; __PACKAGE__->apply_request_class_roles(qw/ Catalyst::TraitFor::Request::BrowserDetect /); __PACKAGE__->setup;
Extend request objects with a method for browser detection.
my $browser = $ctx->request->browser;
Returns an HTTP::BrowserDetect instance for the request. This allows you to get information about the client's user agent.
HTTP::BrowserDetect
Florian Ragwitz <rafl@debian.org>
This software is copyright (c) 2009 by Florian Ragwitz.
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 Catalyst::TraitFor::Request::BrowserDetect, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::TraitFor::Request::BrowserDetect
CPAN shell
perl -MCPAN -e shell install Catalyst::TraitFor::Request::BrowserDetect
For more information on module installation, please visit the detailed CPAN module installation guide.