RLMNetworkTransport
@interface RLMNetworkTransport : NSObject <RLMNetworkTransport>
Transporting protocol for foreign interfaces. Allows for custom request/response handling.
-
Sends a request to a given endpoint.
Declaration
Objective-C
- (void)sendRequestToServer:(nonnull RLMRequest *)request completion:(nonnull RLMNetworkTransportCompletionBlock) completionBlock;
Swift
func sendRequest(toServer request: RLMRequest, completion completionBlock: @escaping RLMNetworkTransportCompletionBlock)
Parameters
request
The request to send.
completionBlock
A callback invoked on completion of the request.