MoyaProvider
public extension MoyaProvider
-
Designated request-making method.
Declaration
Swift
func requestPublisher(_ target: Target, callbackQueue: DispatchQueue? = nil) -> AnyPublisher<Response, MoyaError>
Parameters
target
Entity, which provides specifications necessary for a
MoyaProvider
.callbackQueue
Callback queue. If nil - queue from provider initializer will be used.
Return Value
AnyPublisher<Response, MoyaError
-
Designated request-making method with progress.
Declaration
Swift
func requestWithProgressPublisher(_ target: Target, callbackQueue: DispatchQueue? = nil) -> AnyPublisher<ProgressResponse, MoyaError>