Why not override the request method and do the change there? That way, all users of the request method will get your new request class. Also see perltoot
In reply to Re^3: How to override HTTP::UserAgent::request to return a subclassed HTTP::Response
by Corion
in thread How to override HTTP::UserAgent::request to return a subclassed HTTP::Response
by mje
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |