This class simplifies loading data from a URL.
More...
#import <INURLLoader.h>
Inherits NSObject.
This class simplifies loading data from a URL.
- (void) getWithCallback: |
|
(INCancelErrorBlock) |
callback |
|
Start loading data from an URL.
- (id) initWithURL: |
|
(NSURL *) |
anURL |
|
+ (id) loaderWithURL: |
|
(NSURL *) |
anURL |
|
- (void) performRequest: |
|
(NSURLRequest *) |
aRequest |
withCallback: |
|
(INCancelErrorBlock) |
aCallback |
|
|
| |
Perform an NSURLRequest asynchronically.
This method is internally used as the endpoint of all convenience methods, all load operations start here.
- (void) post: |
|
(NSString *) |
postBody |
withCallback: |
|
(INCancelErrorBlock) |
callback |
|
|
| |
POST body values to our URL.
+ (NSDictionary *) queryFromRequest: |
|
(NSURLRequest *) |
aRequest |
|
Parses arguments from a request.
- Returns
- An NSDictionary containing all arguments found in the request
- Todo:
- look in header and body for more arguments
+ (NSDictionary *) queryFromRequestString: |
|
(NSString *) |
aString |
|
Parses arguments from a request URL string.
- Returns
- An NSDictionary containing all arguments found in the request string
- (BOOL) expectBinaryData |
|
readwritenonatomicassign |
NO by default. Set to YES if you expect binary data; "responseString" will be left nil!
Will contain the response data as loaded from url.
- (NSUInteger) responseStatus |
|
readnonatomicassign |
The HTTP response status code.
- (NSString*) responseString |
|
readnonatomiccopy |
Will contain the response as NSString as loaded from url.
The URL we will load from.
The documentation for this class was generated from the following files:
- IndivoFramework/Classes/INURLLoader.h
- IndivoFramework/Classes/INURLLoader.m