First cut at queue support.

This commit is contained in:
Blake Watters
2010-12-01 14:56:16 -05:00
parent fbe8457dd7
commit a53f28e339
8 changed files with 236 additions and 9 deletions

View File

@@ -7,6 +7,7 @@
//
#import "RKRequest.h"
#import "RKRequestQueue.h"
#import "RKResponse.h"
#import "NSDictionary+RKRequestSerialization.h"
#import "RKNotifications.h"
@@ -115,6 +116,10 @@
}
- (void)send {
[[RKRequestQueue sharedQueue] sendRequest:self];
}
- (void)fireAsynchronousRequest {
[self addHeadersToRequest];
NSString* body = [[NSString alloc] initWithData:[_URLRequest HTTPBody] encoding:NSUTF8StringEncoding];
NSLog(@"Sending %@ request to URL %@. HTTP Body: %@", [self HTTPMethod], [[self URL] absoluteString], body);