MBXHttpRequest
@interface MBXHttpRequest : NSObject
HttpRequest holds basic information for construction of an HTTP request
-
HTTP defines a set of request methods to indicate the desired action to be performed for a given resource. Specify desired method using this parameter.
Declaration
Objective-C
@property (nonatomic) MBXHttpMethod method; -
URL the request should be sent to
Declaration
Objective-C
@property (nonatomic, copy, readonly, nonnull) NSString *url; -
HTTP headers to include. If you provide
User-Agentheader using thisheadersfield, then resultingUser-Agentwill also contain information about application, platform, device, and Common SDK’s version. If you provide duplicate headers thenrequestcall will be immediately failed.Declaration
Objective-C
@property (nonatomic, copy, nonnull) NSDictionary<NSString *, NSString *> *headers; -
Timeout defines how long, in seconds, the request is allowed to take in total (including connecting to the host). Default is 0, meaning no timeout.
Declaration
Objective-C
@property (nonatomic, readonly) uint64_t timeout; -
Restrict the request to the specified network types. If none of the specified network types is available, the download fails with a connection error.
Default is allowed to all network types
Declaration
Objective-C
@property (nonatomic, readonly) MBXNetworkRestriction networkRestriction; -
SDK Information to be appended to the User-Agent string.
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) MBXSdkInformation *sdkInformation; -
HTTP Body data transmitted in an HTTP transaction message immediately following the headers if there is any. Body data is used by POST HTTP methods.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSData *body; -
Various flags that control HttpRequest processing.
See documentation for HttpRequestFlags.
Declaration
Objective-C
@property (nonatomic, readonly) uint32_t flags;
MBXHttpRequest Class Reference