public protocol UploadingNetworkTransport: NetworkTransport
A network transport which can also handle uploads of files.
func upload<Operation: GraphQLOperation>(operation: Operation, files: [GraphQLFile], completionHandler: @escaping (_ result: Result<GraphQLResponse<Operation.Data>, Error>) -> Void) -> Cancellable
Uploads the given files with the given operation.
- operation: The operation to send
- files: An array of
GraphQLFileobjects to send.
- completionHandler: The completion handler to execute when the request completes or errors
- Returns: An object that can be used to cancel an in progress request.
|operation||The operation to send|
|files||An array of |
|completionHandler||The completion handler to execute when the request completes or errors|