pmfl
pmfl

Reputation: 2109

Request Useragent in Mojolicious

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

Answers (1)

pmfl
pmfl

Reputation: 2109

I figured it out: $req->headers->user_agent

Upvotes: 11

Related Questions