Skip to content

nickkhg/Networking

 
 

Repository files navigation

Networking

A light-weight, type safe networking libarary for MacOS and iOS projects.

  • Perform decoding inline.
  • Authorization and reauthorization available automatically.
  • Type safe requests and responses.
  • Custom error handling.
  • OAuth types built in.

Usage

let authorizationProvider = OAuthAuthorizationProvider<MyAuthorizationRequest, MyReauthorizationRequest>()
let networkController = ReauthorizingNetworkController(
    baseURL: URL(string: "https://www.test.com")!,
    authorization: authorizationProvider
)
let requestRespone = try await networkController.fetchContent(myRequest)

Full documentation available here. Specifically BasicNetworkController and NetworkRequest.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 100.0%