NetworkClientConfiguration

public protocol NetworkClientConfiguration

This protocol represents a backend server configuration.

  • The base URL of the backend service

    Declaration

    Swift

    var baseUrl: String { get }
  • Define session manager interface. Can be Alamofire, URLSession

    Declaration

    Swift

    var sessionManager: SessionManager { get }
  • JSON encoder

    Declaration

    Swift

    var jsonEncoder: JSONEncoder { get }
  • JSON decoder

    Declaration

    Swift

    var jsonDecoder: JSONDecoder { get }