Swiftpack.co -  SwiftSimpers/SwiftFetch as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
SwiftSimpers/SwiftFetch
Fetch-like API implementation for Swift for asynchronous HTTP requests with the new async/await syntax.
.package(url: "https://github.com/SwiftSimpers/SwiftFetch.git", from: "v0.9.0")

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

GitHub

link
Stars: 1
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Dependencies

Release Notes

v0.9.0
8 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics