Skip to content

Commit cfcd1bf

Browse files
author
karisli
committed
# 6.0.1
1 parent e1d2e51 commit cfcd1bf

File tree

17 files changed

+32
-46
lines changed

17 files changed

+32
-46
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 6.0.1
2+
3+
14
# 6.0.0
25
1.quic开放端口参数
36
# 5.9.8

QCloudCOSXML.podspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Pod::Spec.new do |s|
22
s.name = "QCloudCOSXML"
33

44

5-
s.version = "6.0.0"
5+
s.version = "6.0.1"
66

77

88
s.summary = "QCloudCOSXML 腾讯云iOS-SDK组件"
@@ -22,15 +22,15 @@ s.version = "6.0.0"
2222
s.subspec 'Default' do |default|
2323
default.source_files = 'QCloudCOSXML/Classes/**/*','QCloudCOSXML/Classes/QCloudCOSXML/*'
2424

25-
default.dependency "QCloudCore",'6.0.0'
25+
default.dependency "QCloudCore",'6.0.1'
2626
end
2727
s.subspec 'Slim' do |slim|
2828
slim.source_files = 'QCloudCOSXML/Classes/**/*','QCloudCOSXML/Classes/QCloudCOSXML/*'
29-
slim.dependency "QCloudCore/WithoutMTA",'6.0.0'
29+
slim.dependency "QCloudCore/WithoutMTA",'6.0.1'
3030
end
3131
s.subspec 'Transfer' do |transfer|
3232
transfer.source_files = 'QCloudCOSXML/Classes/*','QCloudCOSXML/Classes/Transfer/**/*','QCloudCOSXML/Classes/Base/**/*'
33-
transfer.dependency "QCloudCore/WithoutMTA",'6.0.0'
33+
transfer.dependency "QCloudCore/WithoutMTA",'6.0.1'
3434

3535
end
3636

QCloudCOSXML/Classes/QCloudCOSXMLVersion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#ifndef QCloudCOSXMLModuleVersion_h
77
#define QCloudCOSXMLModuleVersion_h
8-
#define QCloudCOSXMLModuleVersionNumber 600000
8+
#define QCloudCOSXMLModuleVersionNumber 600001
99

1010
//dependency
1111

QCloudCOSXML/Classes/QCloudCOSXMLVersion.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#import "QCloudCOSXMLVersion.h"
2-
NSString * const QCloudCOSXMLModuleVersion = @"6.0.0";
2+
NSString * const QCloudCOSXMLModuleVersion = @"6.0.1";
33
NSString * const QCloudCOSXMLModuleName = @"QCloudCOSXML";
44
@interface QCloudQCloudCOSXMLLoad : NSObject
55
@end

QCloudCore.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
1010
s.name = "QCloudCore"
1111

1212

13-
s.version = "6.0.0"
13+
s.version = "6.0.1"
1414

1515

1616

QCloudCore/Classes/Base/QCloudCoreVersion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#ifndef QCloudCoreModuleVersion_h
77
#define QCloudCoreModuleVersion_h
8-
#define QCloudCoreModuleVersionNumber 600000
8+
#define QCloudCoreModuleVersionNumber 600001
99

1010
//dependency
1111

QCloudCore/Classes/Base/QCloudCoreVersion.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#import "QCloudCoreVersion.h"
2-
NSString * const QCloudCoreModuleVersion = @"6.0.0";
2+
NSString * const QCloudCoreModuleVersion = @"6.0.1";
33
NSString * const QCloudCoreModuleName = @"QCloudCore";
44
@interface QCloudQCloudCoreLoad : NSObject
55
@end

QCloudQuic.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
1010
s.name = "QCloudQuic"
1111

1212

13-
s.version = "6.0.0"
13+
s.version = "6.0.1"
1414

1515

1616
s.summary = "QCloudQuic 腾讯云iOS-SDK组件"
@@ -36,7 +36,7 @@ s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
3636
s.source_files = 'QCloudQuic/Classes/QCloudBase/**/*','QCloudQuic/Classes/QuicFramework//*.{h}'
3737
s.vendored_frameworks = 'QCloudQuic/Classes/QuicFramework/Tquic.framework'
3838
s.static_framework = true
39-
s.dependency "QCloudCOSXML",'6.0.0'
39+
s.dependency "QCloudCOSXML",'6.0.1'
4040

4141

4242
end

QCloudQuic/Classes/QCloudBase/QCloudQuicDataTask.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
NS_ASSUME_NONNULL_BEGIN
1212

1313
@interface QCloudQuicDataTask<BodyType> : NSURLSessionDataTask
14-
@property (nonatomic, weak) id<NSURLSessionDataDelegate> delegate;
14+
@property (nullable, retain) id<NSURLSessionDataDelegate> quicDelegate;
1515
@property (nullable, readwrite, copy) NSHTTPURLResponse *response;
1616
@property (nullable, readwrite, copy) NSURLRequest *originalRequest;
1717

@@ -20,6 +20,7 @@ NS_ASSUME_NONNULL_BEGIN
2020
quicHost:(NSString *)quicHost
2121
quicIp:(NSString *)quicIp
2222
body:(BodyType)body
23+
headers:(NSDictionary *)headers
2324
quicSession:(QCloudQuicSession *)quicSession;
2425
- (void)start;
2526
@end

QCloudQuic/Classes/QCloudBase/QCloudQuicDataTask.m

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ - (instancetype)initWithHTTPRequest:(NSMutableURLRequest *)httpRequest
1717
quicHost:(NSString *)quicHost
1818
quicIp:(NSString *)quicIp
1919
body:(id)body
20+
headers:(nonnull NSDictionary *)headers
2021
quicSession:(QCloudQuicSession *)quicSession {
2122
if (self = [super init]) {
2223
id bodyData = nil;
@@ -30,7 +31,7 @@ - (instancetype)initWithHTTPRequest:(NSMutableURLRequest *)httpRequest
3031
httpMethod:httpRequest.HTTPMethod
3132
ip:quicIp
3233
body:bodyData
33-
headerFileds:httpRequest.allHTTPHeaderFields];
34+
headerFileds:headers];
3435
_manager = [TquicConnection new];
3536
__weak typeof(self) weakSelf = self;
3637
[_manager tquicConnectWithQuicRequest:req
@@ -40,20 +41,20 @@ - (instancetype)initWithHTTPRequest:(NSMutableURLRequest *)httpRequest
4041
statusCode:response.statusCode
4142
HTTPVersion:response.httpVersion
4243
headerFields:[response.allHeaderFields copy]];
43-
if ([strngSelf.delegate respondsToSelector:@selector(URLSession:dataTask:didReceiveResponse:completionHandler:)]) {
44-
[strngSelf.delegate URLSession:quicSession dataTask:strngSelf didReceiveResponse:strngSelf.response completionHandler:nil];
44+
if ([strngSelf.quicDelegate respondsToSelector:@selector(URLSession:dataTask:didReceiveResponse:completionHandler:)]) {
45+
[strngSelf.quicDelegate URLSession:quicSession dataTask:strngSelf didReceiveResponse:strngSelf.response completionHandler:nil];
4546
}
4647
}
4748
didReceiveData:^(NSData *_Nonnull data) {
4849
__strong typeof(weakSelf) strngSelf = weakSelf;
49-
if ([strngSelf.delegate respondsToSelector:@selector(URLSession:dataTask:didReceiveData:)]) {
50-
[strngSelf.delegate URLSession:quicSession dataTask:strngSelf didReceiveData:data];
50+
if ([strngSelf.quicDelegate respondsToSelector:@selector(URLSession:dataTask:didReceiveData:)]) {
51+
[strngSelf.quicDelegate URLSession:quicSession dataTask:strngSelf didReceiveData:data];
5152
}
5253
}
5354
didSendBodyData:^(int64_t bytesSent, int64_t totolSentBytes, int64_t totalBytesExpectedToSend) {
5455
__strong typeof(weakSelf) strngSelf = weakSelf;
55-
if ([strngSelf.delegate respondsToSelector:@selector(URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:)]) {
56-
[strngSelf.delegate URLSession:quicSession
56+
if ([strngSelf.quicDelegate respondsToSelector:@selector(URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:)]) {
57+
[strngSelf.quicDelegate URLSession:quicSession
5758
task:strngSelf
5859
didSendBodyData:bytesSent
5960
totalBytesSent:totolSentBytes
@@ -63,8 +64,8 @@ - (instancetype)initWithHTTPRequest:(NSMutableURLRequest *)httpRequest
6364
RequestDidCompleteWithError:^(NSError *_Nonnull error) {
6465
__strong typeof(weakSelf) strngSelf = weakSelf;
6566
strngSelf.originalRequest = [[NSURLRequest alloc] initWithURL:httpRequest.URL];
66-
if ([strngSelf.delegate respondsToSelector:@selector(URLSession:task:didCompleteWithError:)]) {
67-
[strngSelf.delegate URLSession:quicSession task:strngSelf didCompleteWithError:error];
67+
if ([strngSelf.quicDelegate respondsToSelector:@selector(URLSession:task:didCompleteWithError:)]) {
68+
[strngSelf.quicDelegate URLSession:quicSession task:strngSelf didCompleteWithError:error];
6869
}
6970
}];
7071
}

0 commit comments

Comments
 (0)