I'm trying to do a simple GET-Request with Alamofire. My code looks like this:
import Alamofire
let request = AF.request("https://httpbin.org/get", method: .get)
request.responseJSON { (data) in
print(data)
}
print("done")
Problem is that I don't get any data back. The program compiles and runs properly ("done" is printed without an exception being thrown). What am I missing?
I'm building a command line application, no SwiftUI involved here.