Is it possible to use http requests in a way that is blocking, so you don’t have to use callbacks and can use something like local response = http.request()
instead?
I’m writing an abstraction for bundled files, which I want to work for html along with the other usual platforms. When you need to use callbacks for the http request that will force the users of the abstraction to use callbacks as well, since I can’t (as far as I know) return them the data in a simple local data = bundle_abstraction.read("file.file")
.