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
2009-05-31 11:26:18 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5ed9ff308e70f20019d3769ed45426346dd716ba
5ed9ff30
1 parent
2d5ba6db
Export error domain - thanks to Roger Nolan!
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
Classes/ASIHTTPRequest.h
Classes/ASIHTTPRequest.m
Classes/ASIHTTPRequest.h
View file @
5ed9ff3
...
...
@@ -17,6 +17,7 @@
#endif
#import <stdio.h>
typedef
enum
_ASINetworkErrorType
{
ASIConnectionFailureErrorType
=
1
,
ASIRequestTimedOutErrorType
=
2
,
...
...
@@ -29,6 +30,8 @@ typedef enum _ASINetworkErrorType {
}
ASINetworkErrorType
;
extern
NSString
*
const
NetworkRequestErrorDomain
;
@interface
ASIHTTPRequest
:
NSOperation
{
// The url for this operation, should include GET params in the query string where appropriate
...
...
Classes/ASIHTTPRequest.m
View file @
5ed9ff3
...
...
@@ -17,7 +17,7 @@
// We use our own custom run loop mode as CoreAnimation seems to want to hijack our threads otherwise
static
CFStringRef
ASIHTTPRequestRunMode
=
CFSTR
(
"ASIHTTPRequest"
);
static
NSString
*
NetworkRequestErrorDomain
=
@"com.Your-Company.Your-Product.NetworkError.
"
;
NSString
*
const
NetworkRequestErrorDomain
=
@"ASIHTTPRequestErrorDomain
"
;
static
const
CFOptionFlags
kNetworkEvents
=
kCFStreamEventOpenCompleted
|
kCFStreamEventHasBytesAvailable
|
kCFStreamEventEndEncountered
|
kCFStreamEventErrorOccurred
;
...
...
Please
register
or
login
to post a comment