Closed cardoso closed 4 years ago
You can use the https://github.com/swift-server/async-http-client library
We're also working towards instrumenting it for tracing (with the swift-tracing instrumentation efforts), so it'd automatically carry XRay tracing headers as well 👍
Thanks a lot @ktoso :)
@cardoso if you are more familiar with URLSession
you can also just use it. Just make sure to import FoundationNetworking
on Linux to get access to URLSession
.
That's even better. Thank you @fabianfett
Can you make HTTP requests with this? Eg. to respond to a webhook, integrate APIs
I see there's the
HTTPClient
, which looks like it does HTTP requests, but it's currentlyinternal
.