Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

BergerBytes/Networkit

Repository files navigation

πŸ›œ Networkit

Network Kit? Network It? Net workit?

Declarative Networking for Swift

Description

Networkit aims to provide easy to use yet powerful networking features. The library works with a basic "Requestable" concept; any class or struct can be made requestable and then requested.

Key Features

  • Observable requests
  • Callback and Async/Await support
  • Response caching
  • Automatic identical request merging
  • Easy custom queue declaring
  • Extendable with custom tasks

Installation

Swift Package Manager

Swift package manager is the preferred way to use Networkit. Just add this repository. Locking to the current minor version is recommended.

https://github.com/BergerBytes/swift-networking

Simple Example

struct PingEndpoint: Decodable {
 let someData: String
}
extension PingEndpoint: Endpoint {
 static var method: RequestMethod = .get
 static func path(given _: NoParameters) -> URLPath? {
 "endpoint" / "path" / "to" / "ping"
 }
}
let response = try await PingEndpoint.request()

About

Declarative networking library

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

Contributors

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /