JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ApplilinkURLConnection.h
Go to the documentation of this file.
1
9
10#import <Foundation/Foundation.h>
11
12NS_ASSUME_NONNULL_BEGIN
13
20@protocol ApplilinkURLConnectionDelegate <NSObject>
21@optional
26- (void)failLoadWithError:(nullable NSError *)error;
31- (void)finishLoadWithResponse:(nullable NSString *)response;
37- (BOOL)redirectStartLoad:(nullable NSURLRequest *)request;
38@end
39
43@interface ApplilinkURLConnection : NSObject <NSURLConnectionDataDelegate>
44
49@property(nonatomic, weak, nullable) id<ApplilinkURLConnectionDelegate> connectionDelegate;
50
55@property(nonatomic, strong, nullable) NSMutableData *receivedData;
56
61@property(nonatomic, strong, nullable) NSURLResponse *responseData;
62
69- (void)loadRequestWithRequest:(nullable NSURLRequest *)request
70 delegate:(nullable id<ApplilinkURLConnectionDelegate>)delegate;
71
72@end
73
74NS_ASSUME_NONNULL_END
75
76// code: language=Objective-C
77// kate: hl Objective-C;
78// vim: set ft=objc :
Runs one NSURLConnection and reports its outcome to a delegate.
Definition ApplilinkURLConnection.h:43
NSURLResponse * responseData
The response received for the current request.
Definition ApplilinkURLConnection.h:61
NSMutableData * receivedData
The buffer the response body is accumulated into.
Definition ApplilinkURLConnection.h:55
id< ApplilinkURLConnectionDelegate > connectionDelegate
The delegate told about the connection's outcome.
Definition ApplilinkURLConnection.h:49