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
Roman Busyghin
2009-03-21 15:31:50 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
Ben Copsey
2009-03-22 13:04:53 +0000
Commit
9c9e3289c156860d68cb9dbeded86be06be456b9
9c9e3289
1 parent
4f5ae469
Ability to specify custom user info is added
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
ASIHTTPRequest.h
ASIHTTPRequest.m
ASIHTTPRequest.h
View file @
9c9e328
...
...
@@ -181,6 +181,9 @@ typedef enum _ASINetworkErrorType {
NSStringEncoding
responseEncoding
;
BOOL
allowResumeForFileDownloads
;
// Custom user information assosiated with the request
NSDictionary
*
userInfo
;
}
#pragma mark init / dealloc
...
...
@@ -342,4 +345,5 @@ typedef enum _ASINetworkErrorType {
@property
(
assign
)
NSStringEncoding
responseEncoding
;
@property
(
assign
)
BOOL
allowCompressedResponse
;
@property
(
assign
)
BOOL
allowResumeForFileDownloads
;
@property
(
retain
)
NSDictionary
*
userInfo
;
@end
...
...
ASIHTTPRequest.m
View file @
9c9e328
...
...
@@ -90,6 +90,7 @@ static NSError *ASIUnableToCreateRequestError;
[
self
setDidFinishSelector
:
@selector
(
requestFinished
:)];
[
self
setDidFailSelector
:
@selector
(
requestFailed
:)];
[
self
setDelegate
:
nil
];
[
self
setUserInfo
:
nil
];
url
=
[
newURL
retain
];
cancelledLock
=
[[
NSLock
alloc
]
init
];
return
self
;
...
...
@@ -1462,4 +1463,5 @@ static NSError *ASIUnableToCreateRequestError;
@synthesize
responseEncoding
;
@synthesize
allowCompressedResponse
;
@synthesize
allowResumeForFileDownloads
;
@synthesize
userInfo
;
@end
...
...
Please
register
or
login
to post a comment