https://github.com/kraih/mojo/wiki/Blocking-vs-non-blocking-101
I see I can do this to have a non-blocking get handler:
...
$self->render_later;
$self->ua->get('http://www.superhugepage.com/blah.html' => sub {});
...
But I don't understand how to use Mojo::UserAgent in an 'any' handler,
where method might be 'get', 'put', 'delete', etc. Do I build a tx, attach
the callback to 'finish', then start it? Or just do:
$method = $self->req->method;
$self->ua->$method()
?
Thanks
