MBXHttpResponseData.h 1.1 KB

123456789101112131415161718192021222324252627282930
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. /** Record which contains data received in HTTP response. */
  4. NS_SWIFT_NAME(HttpResponseData)
  5. __attribute__((visibility ("default")))
  6. @interface MBXHttpResponseData : NSObject
  7. // This class provides custom init which should be called
  8. - (nonnull instancetype)init NS_UNAVAILABLE;
  9. // This class provides custom init which should be called
  10. + (nonnull instancetype)new NS_UNAVAILABLE;
  11. - (nonnull instancetype)initWithHeaders:(nonnull NSDictionary<NSString *, NSString *> *)headers
  12. code:(int64_t)code
  13. data:(nonnull NSData *)data;
  14. /** Map which contains HTTP response headers in a format header name:value. All the header names are in lower case format. */
  15. @property (nonatomic, readonly, nonnull, copy) NSDictionary<NSString *, NSString *> *headers;
  16. /** HTTP response code. */
  17. @property (nonatomic, readonly) int64_t code;
  18. /** Data chunk received in HTTP response. */
  19. @property (nonatomic, readonly, nonnull) NSData *data;
  20. @end