Swift Package Index

Curly

https://github.com/perfectaccelerators/curly.git

Server Side Swift - HTTP Client (WIP)


Compatibility

  • 0.1.2 and master
    5.3
    5.2
    5.1
    5.0
    4.2
  • 0.1.2 and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS

Curly - WIP

If you need to call an API in your Server Side Swift then you can simply use Curly! It simplifies and standaridizes the cURL calls by providing convenience methods.

Features

  • A protocol to define all the API dependencies ClientAPIProtocol
  • Automatic JSON Model mapping for requests and responses with Codables ClientAPIMappingHelper
  • Standard error handling with ClientAPIError: Error, Codable
  • HTTP Client
  • Client REST Protocol with extension that provides consume and produce for GET and POST calls out of the box