NetworkingFactoryProtocol
public protocol NetworkingFactoryProtocol : AnyObject
Protocol for class that builds an instance of EPINetworkingClientProtocol
.
-
Builds and returns an instance of
EPINetworkingClient
.Declaration
Swift
func build( baseUrl: String, appendAPI: Bool ) -> EPINetworkingClientProtocol
Parameters
baseUrl
The base URL for the networking client.
appendAPI
A flag indicating whether to append API path prefix (i.e. “/api”) to the base URL.
Return Value
An instance of
EPINetworkingClient
.