Toggle navigation
Toggle navigation
This project
Loading...
Sign in
iOS
/
asi-http-request
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Ben Copsey
2010-07-02 11:20:09 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
546c2fd0a85739084e30945f0caded0a1a42fd38
546c2fd0
1 parent
188a1960
Fix LLVM compiler warnings
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
59 additions
and
10 deletions
Classes/ASIAuthenticationDialog.h
Classes/ASIDownloadCache.h
Classes/ASIDownloadCache.m
Classes/ASIHTTPRequest.h
Classes/ASIHTTPRequest.m
Classes/ASINetworkQueue.h
iPhone.xcodeproj/project.pbxproj
Classes/ASIAuthenticationDialog.h
View file @
546c2fd
...
...
@@ -31,5 +31,5 @@ typedef enum _ASIAuthenticationType {
@property
(
retain
)
ASIHTTPRequest
*
request
;
@property
(
assign
)
ASIAuthenticationType
type
;
@property
(
assign
)
BOOL
didEnableRotationNotifications
;
@property
(
retain
)
UIViewController
*
presentingController
;
@property
(
retain
,
nonatomic
)
UIViewController
*
presentingController
;
@end
...
...
Classes/ASIDownloadCache.h
View file @
546c2fd
...
...
@@ -40,8 +40,8 @@
// Do not use this formatter for parsing dates because the format can vary slightly - use ASIHTTPRequest's dateFromRFC1123String: class method instead
+
(
NSDateFormatter
*
)
rfc1123DateFormatter
;
@property
(
assign
)
ASICachePolicy
defaultCachePolicy
;
@property
(
retain
)
NSString
*
storagePath
;
@property
(
assign
,
nonatomic
)
ASICachePolicy
defaultCachePolicy
;
@property
(
retain
,
nonatomic
)
NSString
*
storagePath
;
@property
(
retain
)
NSRecursiveLock
*
accessLock
;
@property
(
assign
)
BOOL
shouldRespectCacheControlHeaders
;
@end
...
...
Classes/ASIDownloadCache.m
View file @
546c2fd
...
...
@@ -47,6 +47,15 @@ static NSString *permanentCacheFolder = @"PermanentStore";
[
super
dealloc
];
}
-
(
NSString
*
)
storagePath
{
[[
self
accessLock
]
lock
];
NSString
*
p
=
[[
storagePath
retain
]
autorelease
];
[[
self
accessLock
]
unlock
];
return
p
;
}
-
(
void
)
setStoragePath
:
(
NSString
*
)
path
{
[[
self
accessLock
]
lock
];
...
...
@@ -276,6 +285,14 @@ static NSString *permanentCacheFolder = @"PermanentStore";
return
YES
;
}
-
(
ASICachePolicy
)
defaultCachePolicy
{
[[
self
accessLock
]
lock
];
ASICachePolicy
cp
=
defaultCachePolicy
;
[[
self
accessLock
]
unlock
];
return
cp
;
}
-
(
void
)
setDefaultCachePolicy
:
(
ASICachePolicy
)
cachePolicy
{
...
...
Classes/ASIHTTPRequest.h
View file @
546c2fd
...
...
@@ -751,10 +751,10 @@ extern unsigned long const ASIWWANBandwidthThrottleAmount;
@property
(
retain
,
setter
=
setURL
:
)
NSURL
*
url
;
@property
(
retain
)
NSURL
*
originalURL
;
@property
(
assign
)
id
delegate
;
@property
(
assign
)
id
queue
;
@property
(
assign
)
id
uploadProgressDelegate
;
@property
(
assign
)
id
downloadProgressDelegate
;
@property
(
assign
,
nonatomic
)
id
delegate
;
@property
(
assign
,
nonatomic
)
id
queue
;
@property
(
assign
,
nonatomic
)
id
uploadProgressDelegate
;
@property
(
assign
,
nonatomic
)
id
downloadProgressDelegate
;
@property
(
assign
)
BOOL
useKeychainPersistence
;
@property
(
assign
)
BOOL
useSessionPersistence
;
@property
(
retain
)
NSString
*
downloadDestinationPath
;
...
...
Classes/ASIHTTPRequest.m
View file @
546c2fd
...
...
@@ -24,7 +24,7 @@
// Automatically set on build
NSString
*
ASIHTTPRequestVersion
=
@"v1.7-1
0
2010-07-02"
;
NSString
*
ASIHTTPRequestVersion
=
@"v1.7-1
1
2010-07-02"
;
NSString
*
const
NetworkRequestErrorDomain
=
@"ASIHTTPRequestErrorDomain"
;
...
...
@@ -461,6 +461,14 @@ static NSOperationQueue *sharedQueue = nil;
[
stream
close
];
}
-
(
id
)
delegate
{
[[
self
cancelledLock
]
lock
];
id
d
=
[[
delegate
retain
]
autorelease
];
[[
self
cancelledLock
]
unlock
];
return
d
;
}
-
(
void
)
setDelegate
:
(
id
)
newDelegate
{
[[
self
cancelledLock
]
lock
];
...
...
@@ -468,6 +476,15 @@ static NSOperationQueue *sharedQueue = nil;
[[
self
cancelledLock
]
unlock
];
}
-
(
id
)
queue
{
[[
self
cancelledLock
]
lock
];
id
q
=
[[
queue
retain
]
autorelease
];
[[
self
cancelledLock
]
unlock
];
return
q
;
}
-
(
void
)
setQueue
:
(
id
)
newQueue
{
[[
self
cancelledLock
]
lock
];
...
...
@@ -1334,6 +1351,13 @@ static NSOperationQueue *sharedQueue = nil;
}
}
-
(
id
)
uploadProgressDelegate
{
[[
self
cancelledLock
]
lock
];
id
d
=
[[
uploadProgressDelegate
retain
]
autorelease
];
[[
self
cancelledLock
]
unlock
];
return
d
;
}
-
(
void
)
setUploadProgressDelegate
:
(
id
)
newDelegate
{
...
...
@@ -1348,6 +1372,14 @@ static NSOperationQueue *sharedQueue = nil;
[[
self
cancelledLock
]
unlock
];
}
-
(
id
)
downloadProgressDelegate
{
[[
self
cancelledLock
]
lock
];
id
d
=
[[
downloadProgressDelegate
retain
]
autorelease
];
[[
self
cancelledLock
]
unlock
];
return
d
;
}
-
(
void
)
setDownloadProgressDelegate
:
(
id
)
newDelegate
{
[[
self
cancelledLock
]
lock
];
...
...
Classes/ASINetworkQueue.h
View file @
546c2fd
...
...
@@ -80,8 +80,8 @@
// This method will start the queue
-
(
void
)
go
;
@property
(
assign
,
setter
=
setUploadProgressDelegate
:
)
id
uploadProgressDelegate
;
@property
(
assign
,
setter
=
setDownloadProgressDelegate
:
)
id
downloadProgressDelegate
;
@property
(
assign
,
nonatomic
,
setter
=
setUploadProgressDelegate
:
)
id
uploadProgressDelegate
;
@property
(
assign
,
nonatomic
,
setter
=
setDownloadProgressDelegate
:
)
id
downloadProgressDelegate
;
@property
(
assign
)
SEL
requestDidStartSelector
;
@property
(
assign
)
SEL
requestDidReceiveResponseHeadersSelector
;
...
...
iPhone.xcodeproj/project.pbxproj
View file @
546c2fd
This diff was suppressed by a .gitattributes entry.
Please
register
or
login
to post a comment