Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 1.04 KB

README.md

File metadata and controls

40 lines (25 loc) · 1.04 KB

Swift Fetch

Swift 5.5 Platforms: iOS, macOS, tvOS, watchOS Swift Package Manager Compatible

Fetch-like API implementation for Swift for asynchronous HTTP requests with the new async/await syntax.

Usage

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 {
  // ...
}

Contributing

You're always welcome to contribute!

  • We use SwiftFormat for formatting.

License

Check LICENSE for more info.

Copyright 2021-present (c) DjDeveloperr, Helloyunho