From ad1dcdc0e165b639a2a8916c624ea03d7feac27d Mon Sep 17 00:00:00 2001 From: lpw <812862340@qq.com> Date: Tue, 01 Jul 2025 15:29:08 +0800 Subject: [PATCH] 提交版本 4.5.0 --- frameworks/GoogleUtilities.xcframework/tvos-arm64_x86_64-simulator/GoogleUtilities.framework/Headers/GULNetwork.h | 34 ++++++++++++++++++++++++---------- 1 files changed, 24 insertions(+), 10 deletions(-) diff --git a/frameworks/GoogleUtilities.xcframework/tvos-arm64_x86_64-simulator/GoogleUtilities.framework/Headers/GULNetwork.h b/frameworks/GoogleUtilities.xcframework/tvos-arm64_x86_64-simulator/GoogleUtilities.framework/Headers/GULNetwork.h index 0e75ae5..4c5b5f5 100644 --- a/frameworks/GoogleUtilities.xcframework/tvos-arm64_x86_64-simulator/GoogleUtilities.framework/Headers/GULNetwork.h +++ b/frameworks/GoogleUtilities.xcframework/tvos-arm64_x86_64-simulator/GoogleUtilities.framework/Headers/GULNetwork.h @@ -20,6 +20,8 @@ #import "GULNetworkLoggerProtocol.h" #import "GULNetworkURLSession.h" +NS_ASSUME_NONNULL_BEGIN + /// Delegate protocol for GULNetwork events. @protocol GULNetworkReachabilityDelegate @@ -69,19 +71,31 @@ /// Compresses and sends a POST request with the provided data to the URL. The session will be /// background session if usingBackgroundSession is YES. Otherwise, the POST session is default /// session. Returns a session ID or nil if an error occurs. -- (NSString *)postURL:(NSURL *)url - payload:(NSData *)payload - queue:(dispatch_queue_t)queue - usingBackgroundSession:(BOOL)usingBackgroundSession - completionHandler:(GULNetworkCompletionHandler)handler; +- (nullable NSString *)postURL:(NSURL *)url + payload:(NSData *)payload + queue:(nullable dispatch_queue_t)queue + usingBackgroundSession:(BOOL)usingBackgroundSession + completionHandler:(GULNetworkCompletionHandler)handler; + +/// Compresses and sends a POST request with the provided headers and data to the URL. The session +/// will be background session if usingBackgroundSession is YES. Otherwise, the POST session is +/// default session. Returns a session ID or nil if an error occurs. +- (nullable NSString *)postURL:(NSURL *)url + headers:(nullable NSDictionary *)headers + payload:(NSData *)payload + queue:(nullable dispatch_queue_t)queue + usingBackgroundSession:(BOOL)usingBackgroundSession + completionHandler:(GULNetworkCompletionHandler)handler; /// Sends a GET request with the provided data to the URL. The session will be background session /// if usingBackgroundSession is YES. Otherwise, the GET session is default session. Returns a /// session ID or nil if an error occurs. -- (NSString *)getURL:(NSURL *)url - headers:(NSDictionary *)headers - queue:(dispatch_queue_t)queue - usingBackgroundSession:(BOOL)usingBackgroundSession - completionHandler:(GULNetworkCompletionHandler)handler; +- (nullable NSString *)getURL:(NSURL *)url + headers:(nullable NSDictionary *)headers + queue:(nullable dispatch_queue_t)queue + usingBackgroundSession:(BOOL)usingBackgroundSession + completionHandler:(GULNetworkCompletionHandler)handler; @end + +NS_ASSUME_NONNULL_END -- Gitblit v1.8.0