Fetch-like API implementation for Swift for asynchronous HTTP requests with the new async/await
syntax.
import SwiftFetch
let response = try await fetch("https://google.com")
print(try await response.text())
Wanna stream? It's easy!
import SwiftFetch
let response = try await fetch("https://url.to/something")
for try await byte in response.body {
// ...
}
You're always welcome to contribute!
- We use SwiftFormat for formatting.
Check LICENSE for more info.
Copyright 2021-present (c) DjDeveloperr, Helloyunho