BMPHttpRequest


@interface BMPHttpRequest : NSObject <NSCopying>

A configuration object representing an HTTP request.

  • HTTP request body to send to the server.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSData *body;

    Swift

    @NSCopying var body: NSData? { get set }
  • HTTP headers of this request.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, 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 (readwrite, copy, nonatomic, nonnull) NSString *method;

    Swift

    var method: String { get set }
  • url

    URL of the request

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nonnull) NSURL *url;

    Swift

    @NSCopying var url: NSURL { get set }
  • Undocumented

    Declaration

    Objective-C

    + (instancetype)new NS_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: NSURL, method: String)