RLMRequest

Objective-C

@interface RLMRequest : NSObject

Swift

@_nonSendable(_assumed) class RLMRequest : NSObject

An HTTP request that can be made to an arbitrary server.

  • The HTTP method of this request.

    Declaration

    Objective-C

    @property (nonatomic) RLMHTTPMethod method;

    Swift

    var method: RLMHTTPMethod { get set }
  • url

    The URL to which this request will be made.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nonnull url;

    Swift

    var url: String { get set }
  • The number of milliseconds that the underlying transport should spend on an HTTP round trip before failing with an error.

    Declaration

    Objective-C

    @property (nonatomic) NSTimeInterval timeout;

    Swift

    var timeout: TimeInterval { get set }
  • The HTTP headers of this request.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDictionary<NSString *, NSString *> *_Nonnull headers;

    Swift

    var headers: [String : String] { get set }
  • The body of the request.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nonnull body;

    Swift

    var body: String { get set }