53 lines
1.1 KiB
Objective-C
53 lines
1.1 KiB
Objective-C
#if __has_include(<Sentry/Sentry.h>)
|
|
# import <Sentry/SentryDefines.h>
|
|
# import <Sentry/SentrySerializable.h>
|
|
#else
|
|
# import <SentryWithoutUIKit/SentryDefines.h>
|
|
# import <SentryWithoutUIKit/SentrySerializable.h>
|
|
#endif
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface SentryRequest : NSObject <SentrySerializable>
|
|
|
|
/**
|
|
* Optional: HTTP response body size.
|
|
*/
|
|
@property (nonatomic, copy, nullable) NSNumber *bodySize;
|
|
|
|
/**
|
|
* Optional: The cookie values.
|
|
*/
|
|
@property (nonatomic, copy, nullable) NSString *cookies;
|
|
|
|
/**
|
|
* Optional: A dictionary of submitted headers.
|
|
*/
|
|
@property (nonatomic, strong, nullable) NSDictionary<NSString *, NSString *> *headers;
|
|
|
|
/**
|
|
* Optional: The fragment of the request URL.
|
|
*/
|
|
@property (nonatomic, copy, nullable) NSString *fragment;
|
|
|
|
/**
|
|
* Optional: HTTP request method.
|
|
*/
|
|
@property (nonatomic, copy, nullable) NSString *method;
|
|
|
|
/**
|
|
* Optional: The query string component of the URL.
|
|
*/
|
|
@property (nonatomic, copy, nullable) NSString *queryString;
|
|
|
|
/**
|
|
* Optional: The URL of the request if available.
|
|
*/
|
|
@property (nonatomic, copy, nullable) NSString *url;
|
|
|
|
- (instancetype)init;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|