BMPHttpRequest
Objective-C
@interface BMPHttpRequest : NSObject <NSCopying>
Swift
class HttpRequest : NSObject, NSCopying, @unchecked Sendable
A config object representing an HTTP request.
-
HTTP request body to send to the server.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSData *body;
Swift
var body: Data? { get set }
-
HTTP headers of this request.
Declaration
Objective-C
@property (nonatomic, copy, nonnull) NSMutableDictionary<NSString *, NSString *> *headers;
Swift
@NSCopying var headers: NSMutableDictionary { get set }
-
HTTP method of the request. Can be “GET” | “POST” | “HEAD”
Declaration
Objective-C
@property (nonatomic, copy, nonnull) NSString *method;
Swift
var method: String { get set }
-
URL of the request
Declaration
Objective-C
@property (nonatomic, copy, nonnull) NSURL *url;
Swift
var url: URL { get set }
-
Unavailable
Undocumented
Declaration
Objective-C
+ (instancetype)new NS_UNAVAILABLE;
-
Unavailable
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE;
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithUrl:(NSURL *)url method:(NSString *)method NS_DESIGNATED_INITIALIZER;
Swift
init(url: URL, method: String)