O'Reilly logo

Swift Functional Programming - Second Edition by Dr. Fatih Nayebi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Communication

The Communication layer is responsible for backend communication. It includes the following components:

  • WebServiceManager: This provides a global function named sendRequest that is used by TodoManager to call the backend API. Also, it uses configureHeaders to perform a reflection on request to get its properties and respective values.
  • Urls: This enum provides a proper HTTP request method and a full URL address by pattern-matching and extensions.
  • Alamofire: This is a library that is used by WebServiceManager for HTTP request handling.
  • Argo: This library maps model objects from and to JSON functionally.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required