NetworkingProvider

public protocol NetworkingProvider : NetworkingProviderConvertible

If you want to use a different networking library, implement this protocol and pass your implementation to Service.init(...).

See URLSessionProvider and Extensions/Alamofire/Networking-Alamofire.swift for implementation examples.

  • siestaNetworkingProvider Extension method

    You can pass a NetworkingProvider when creating a Service to override the default networking behavior.

    See also

    NetworkingProviderConvertible

    Declaration

    Swift

    public var siestaNetworkingProvider: NetworkingProvider { get }