RLMNetworkTransport
Objective-C
@interface RLMNetworkTransport : NSObject <RLMNetworkTransport>
Swift
@_nonSendable(_assumed) class RLMNetworkTransport : NSObject, RLMNetworkTransportProtocol, @unchecked Sendable
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) async -> RLMResponse
Parameters
request
The request to send.
completionBlock
A callback invoked on completion of the request.