8 #import <Foundation/Foundation.h>
43 NS_ASSUME_NONNULL_BEGIN
66 - (void)onOpen:(
id) socket;
81 - (void)onRead:(
id) socket;
96 - (void)onClose:(
id) socket;
108 - (void)onErr:(
int)error inSocket:(
id) socket;
137 - (instancetype)init;
151 - (void)write:(const
char*)data;
164 - (void)writeData:(NSData*)data;
178 - (void)write:(const
char*)data withLength:(
int)length;
217 - (int)read:(
char*)data toMaxLength:(
int)maxLength;
241 - (nullable NSMutableString*)unreadDataAsString;
264 - (nullable NSMutableData*)unreadData;
281 __weak id <GDSocketDelegate> _Nullable delegate;
283 void* m_socketInternal;
305 - (instancetype)init:(const
char*)url onPort:(
int)port andUseSSL:(BOOL)ssl;
336 - (BOOL)disableHostVerification;
370 - (BOOL)disablePeerVerification;
408 @property (nullable, nonatomic, weak) id<GDSocketDelegate> delegate;
437 #if __has_extension(attribute_deprecated_with_message)
438 # define DEPRECATE_GDHTTPREQUESTDELEGATE __attribute__((deprecated("GDHttpRequestDelegate interface has been deprecated")))
440 # define DEPRECATE_GDHTTPREQUESTDELEGATE __attribute__((deprecated))
453 DEPRECATE_GDHTTPREQUESTDELEGATE
475 - (void)onStatusChange:(
id) httpRequest DEPRECATE_GDHTTPREQUESTDELEGATE;
517 } DEPRECATE_GDHTTPREQUESTDELEGATE;
521 #ifndef __has_extension
522 #define __has_extension(x) 0 // Compatibility with non-clang compilers.
527 #if __has_extension(attribute_deprecated_with_message)
528 # define DEPRECATE_CLEARCOOKIES __attribute__((deprecated("No longer supported")))
530 # define DEPRECATE_CLEARCOOKIES __attribute__((deprecated))
532 #if __has_extension(attribute_deprecated_with_message)
533 # define DEPRECATE_GDHTTPREQUEST __attribute__((deprecated("GDHttpRequest interface has been deprecated")))
535 # define DEPRECATE_GDHTTPREQUEST __attribute__((deprecated))
884 DEPRECATE_GDHTTPREQUEST
886 __weak id <GDHttpRequestDelegate> _Nullable
delegate;
888 void* m_httpRequestInternal;
904 - (instancetype)init DEPRECATE_GDHTTPREQUEST;
968 - (BOOL) open:(const
char*)method withUrl:(const
char*)url withAsync:(BOOL) isAsync withUser:(nullable const
char*)user withPass:(nullable const
char*)password withAuth:(nullable const
char*)auth DEPRECATE_GDHTTPREQUEST;
981 - (BOOL) open:(const
char*)method withUrl:(const
char*)url withUser:(nullable const
char*)user withPass:(nullable const
char*)password withAuth:(nullable const
char*)auth DEPRECATE_GDHTTPREQUEST;
999 - (BOOL) open:(const
char*)method withUrl:(const
char*)url withAsync:(BOOL)isAsync DEPRECATE_GDHTTPREQUEST;
1017 - (BOOL) open:(const
char*)method withUrl:(const
char*)url DEPRECATE_GDHTTPREQUEST;
1062 - (BOOL) disableHostVerification DEPRECATE_GDHTTPREQUEST;
1111 - (BOOL) disablePeerVerification DEPRECATE_GDHTTPREQUEST;
1141 - (BOOL) disableFollowLocation DEPRECATE_GDHTTPREQUEST;
1167 - (BOOL) disableCookieHandling DEPRECATE_GDHTTPREQUEST;
1196 - (void) clearCookies:(BOOL) includePersistentStore DEPRECATE_CLEARCOOKIES;
1247 - (BOOL) enableHttpProxy:(const
char*)host withPort:(
int)port withUser:(const
char*)user withPass:(const
char*)password withAuth:(const
char*)auth DEPRECATE_GDHTTPREQUEST;
1262 - (BOOL) enableHttpProxy:(const
char*)host withPort:(
int)port DEPRECATE_GDHTTPREQUEST;
1284 - (BOOL) disableHttpProxy DEPRECATE_GDHTTPREQUEST;
1316 - (BOOL) setRequestHeader:(const
char*)header withValue:(const
char*)value DEPRECATE_GDHTTPREQUEST;
1342 - (void) setPostValue:(const
char*)value forKey:(const
char*)key DEPRECATE_GDHTTPREQUEST;
1363 - (void) clearPostValues DEPRECATE_GDHTTPREQUEST;
1424 - (BOOL) send:(nullable const
char*)data withLength:(
unsigned int)len withTimeout:(
int)timeout_s DEPRECATE_GDHTTPREQUEST;
1438 - (BOOL) send:(nullable const
char*)data withTimeout:(
int)timeout_s DEPRECATE_GDHTTPREQUEST;
1452 - (BOOL) send:(nullable const
char*)data DEPRECATE_GDHTTPREQUEST;
1468 - (BOOL) send DEPRECATE_GDHTTPREQUEST;
1481 - (BOOL) sendData:(nullable NSData*)data withTimeout:(
int)timeout_s DEPRECATE_GDHTTPREQUEST;
1494 - (BOOL) sendData:(nullable NSData*)data DEPRECATE_GDHTTPREQUEST;
1529 - (BOOL) sendWithFile:(NSString*)pathAndFileName withTimeout:(NSTimeInterval)timeoutSeconds DEPRECATE_GDHTTPREQUEST;
1543 - (BOOL) sendWithFile:(NSString*)pathAndFileName DEPRECATE_GDHTTPREQUEST;
1590 - (nullable const char*) getResponseHeader:(const
char*)header DEPRECATE_GDHTTPREQUEST;
1615 - (nullable const char*) getAllResponseHeaders DEPRECATE_GDHTTPREQUEST;
1679 - (int) getStatus DEPRECATE_GDHTTPREQUEST;
1724 - (nullable const char*) getStatusText DEPRECATE_GDHTTPREQUEST;
1797 - (BOOL) close DEPRECATE_GDHTTPREQUEST;
1825 - (BOOL) abort DEPRECATE_GDHTTPREQUEST;
1849 @property (nonatomic, assign) BOOL enablePipelining DEPRECATE_GDHTTPREQUEST;
1868 @property (nullable, nonatomic, weak) id<GDHttpRequestDelegate> delegate DEPRECATE_GDHTTPREQUEST;
1872 NS_ASSUME_NONNULL_END