I've written an API-Wrapper for an external REST-API. This wrapper provides iOS and macOS-Apps an convenient access to that API.
But I want to expand that API-Wrapper to Vapor on Linux.
Linux (RaspiOS with 64-Bit) has Swift 5.5 running (without swift-corelibs-foundation) so URLSession is not available. I tried SwiftyRequest and AsyncHTTPClient but both did not play well with Vapor. E.g. wait() can't be used with Vapor and whenComplete() draws error * underlying error: uncleanShutdown* while syncShutdown can't be used for the same reason as wait()
So I'm stuck with connecting to the API.
What would be a proper way to perform the request that works standalone and with vapor?