in reply to AnyEvent::HTTPD -> Extra Callback after response?

So I never wrote the answer for this:

The registered callback is async, but it responds immediately instead of doing an async operation.

Thus the fix was to postpone the response so that it is done *after* the registered callback completes:

AnyEvent::postpone { $req->respond(...) }