in reply to Re^6: How to override HTTP::UserAgent::request to return a subclassed HTTP::Response
in thread How to override HTTP::UserAgent::request to return a subclassed HTTP::Response

How about just overriding the HTTP::Response::content method then?

require HTTP::Response; use Carp 'cluck'; my $old_content = \&HTTP::Response::content; *HTTP::Response::content = sub { cluck "HTTP::Response::content called - do you want HTTP::Response +::decoded_content instead?"; goto &$old_content; };

You could get fancy and check whether it's HTTP::Response::decoded_content that is calling you and then suppress your warning, by using caller.