Revert "NSURLSession Reimplementation (#411)"

This reverts commit 07233534e6.
This commit is contained in:
rfm 2024-07-02 19:19:14 +01:00 committed by GitHub
parent 07233534e6
commit 3fedf31c2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
50 changed files with 7197 additions and 5391 deletions

View file

@ -39,7 +39,6 @@ typedef struct {
NSMutableDictionary *headers;
BOOL shouldHandleCookies;
BOOL debug;
BOOL assumesHTTP3Capable;
id<GSLogDelegate> ioDelegate;
NSURL *URL;
NSURL *mainDocumentURL;
@ -57,9 +56,6 @@ typedef struct {
@interface _GSMutableInsensitiveDictionary : NSMutableDictionary
@end
@interface _GSInsensitiveDictionary : NSMutableDictionary
@end
@implementation NSURLRequest
+ (id) allocWithZone: (NSZone*)z
@ -120,7 +116,6 @@ typedef struct {
ASSIGN(inst->bodyStream, this->bodyStream);
ASSIGN(inst->method, this->method);
inst->shouldHandleCookies = this->shouldHandleCookies;
inst->assumesHTTP3Capable = this->assumesHTTP3Capable;
inst->debug = this->debug;
inst->ioDelegate = this->ioDelegate;
inst->headers = [this->headers mutableCopy];
@ -380,11 +375,6 @@ typedef struct {
return [this->headers objectForKey: field];
}
- (BOOL) assumesHTTP3Capable
{
return this->assumesHTTP3Capable;
}
@end
@ -464,11 +454,6 @@ typedef struct {
}
}
- (void)setAssumesHTTP3Capable:(BOOL)capable
{
this->assumesHTTP3Capable = capable;
}
@end
@implementation NSURLRequest (Private)
@ -483,11 +468,6 @@ typedef struct {
return this->ioDelegate;
}
- (_GSInsensitiveDictionary *) _insensitiveHeaders
{
return [this->headers copy];
}
- (id) _propertyForKey: (NSString*)key
{
return [this->properties objectForKey: key];