sectokia has asked for the wisdom of the Perl Monks concerning the following question:
AnyEvent::HTTPD has request callbacks for when a request comes in. These requests must be processed and the results returned by the callback.
My Question is: What if to handle the request, I need to in-turn perform an async operation, such as an AnyEvent::HTTP request to another server. How can I achieve this?
It doesn't seem there is anyway to just return in the callback, and call HTTPD later when I have a response for the request?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: AnyEvent::HTTPD -> async response generation
by Corion (Patriarch) on Mar 12, 2021 at 06:16 UTC |