Reputation: 2109
I am trying to read the UserAgent from a request and perform operations based on it. Can anyone tell me, how I can get request UserAgent in Mojolicious.
Thanks.
Upvotes: 9
Views: 1367
I figured it out: $req->headers->user_agent
$req->headers->user_agent
Upvotes: 11