I need to convert LWP::UserAgent to Mojo::UserAgent to support async calls. Problem is I couldn't find the exact methods that matches the LWP::UserAgent methods below, for example, how do I convert the following LWP methods over to Mojo's? Any insight is greatly appreciated!
my $ua = new LWP::UserAgent ;
$ua->protocols_allowed( [ 'http', 'https' ] );
$ua->ssl_opts(
SSL_version=>'TLSv12',
verify_hostname=>0,
SSL_verify_mode=>SSL_VERIFY_NONE,
SSL_ca_file=>'ca_file.crt',
SSL_cert_file=>'cert_file.crt',
SSL_key_file=>'key_file.key',
SSL_passwd_cb=> sub { return 'psswd'; }
);
$ua->credentials( $host_port, $realm, $user, $password ) ;
$ua->timeout( $timeOut ) ;
$ua->proxy( $theProxy ) ;
$ua->request( $requestObj );