The non-callback variants of the rest context function API return Pending to Process as string result instead of the actual result. e.g. RestContext::GET_now
The callback-based variants seem to work, but it would be very useful if we are able to wait for the result in script. For example for saving a bit of information on controlled server shutdown, the server is blocked from terminating the process before all the HTTP calls went to the webserver.
s. reproduction steps below