You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// - result: The result of a performed operation. Will have a `GraphQLResult` with any parsed data and any GraphQL errors on `success`, and an `Error` on `failure`.
Copy file name to clipboardExpand all lines: Sources/Apollo/HTTPNetworkTransport.swift
+17-20Lines changed: 17 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ public protocol HTTPNetworkTransportRetryDelegate: HTTPNetworkTransportDelegate
68
68
// MARK: -
69
69
70
70
/// A network transport that uses HTTP POST requests to send GraphQL operations to a server, and that uses `URLSession` as the networking implementation.
/// A network transport is responsible for sending GraphQL operations to a server.
2
2
publicprotocolNetworkTransport{
3
+
3
4
/// Send a GraphQL operation to a server and return a response.
4
5
///
5
6
/// - Parameters:
6
7
/// - operation: The operation to send.
7
-
/// - completionHandler: A closure to call when a request completes.
8
-
/// - response: The response received from the server, or `nil` if an error occurred.
9
-
/// - error: An error that indicates why a request failed, or `nil` if the request was succesful.
8
+
/// - completionHandler: A closure to call when a request completes. On `success` will contain the response received from the server. On `failure` will contain the error which occurred.
10
9
/// - Returns: An object that can be used to cancel an in progress request.
/// A network transport that sends subscriptions using one `NetworkTransport` and other requests using another `NetworkTransport`. Ideal for sending subscriptions via a web socket but everything else via HTTP.
/// - httpNetworkTransport: A `NetworkTransport` to use for non-subscription requests. Should generally be a `HTTPNetworkTransport` or something similar.
14
+
/// - webSocketNetworkTransport: A `NetworkTransport` to use for subscription requests. Should generally be a `WebSocketTransport` or something similar.
0 commit comments