HttpServiceFactory

class HttpServiceFactory

HTTP service factory. This class is used to get a pointer/reference to HTTP service platform implementation. In order to set a custom implementation, the client must call `setUserDefined()` method once before any actual HTTP service is required.

Functions

getInstance
Link copied to clipboard
open fun getInstance(): HttpServiceInterface
Returns an instance of the HTTP service.
reset
Link copied to clipboard
open fun reset()
Releases the implementation of the HTTP service.
setUserDefined
Link copied to clipboard
open fun setUserDefined(@NonNull custom: HttpServiceInterface)
Replaces the implementation of the HTTP service with a custom one.