Skip to content

Commit

Permalink
- Added support for query parameters
Browse files Browse the repository at this point in the history
- Added preliminary support for POST operations
  • Loading branch information
mtabini committed Oct 7, 2010
1 parent 2591ca1 commit 06dfd42
Show file tree
Hide file tree
Showing 6 changed files with 148 additions and 104 deletions.
135 changes: 62 additions & 73 deletions AFKLoadManager.xcodeproj/marcot.pbxuser
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
}; };
1D3623250D0F684500981E51 /* AFKLoadManagerAppDelegate.m */ = { 1D3623250D0F684500981E51 /* AFKLoadManagerAppDelegate.m */ = {
uiCtxt = { uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {2244, 1232}}"; sepNavIntBoundsRect = "{{0, 0}, {2244, 1360}}";
sepNavSelRange = "{536, 0}"; sepNavSelRange = "{536, 0}";
sepNavVisRange = "{0, 2229}"; sepNavVisRange = "{98, 2253}";
}; };
}; };
1D6058900D05DD3D006BFB54 /* AFKLoadManager */ = { 1D6058900D05DD3D006BFB54 /* AFKLoadManager */ = {
Expand Down Expand Up @@ -157,21 +157,20 @@
PBXFileDataSource_Warnings_ColumnID, PBXFileDataSource_Warnings_ColumnID,
); );
}; };
PBXPerProjectTemplateStateSaveDate = 307589999; PBXPerProjectTemplateStateSaveDate = 308115622;
PBXWorkspaceStateSaveDate = 307589999; PBXWorkspaceStateSaveDate = 308115622;
}; };
perUserProjectItems = { perUserProjectItems = {
8F862F3912556C27005D8CB9 = 8F862F3912556C27005D8CB9 /* PBXTextBookmark */; 8F862F3912556C27005D8CB9 /* PBXTextBookmark */ = 8F862F3912556C27005D8CB9 /* PBXTextBookmark */;
8F862F4812556C4D005D8CB9 = 8F862F4812556C4D005D8CB9 /* PlistBookmark */; 8F862F4812556C4D005D8CB9 /* PlistBookmark */ = 8F862F4812556C4D005D8CB9 /* PlistBookmark */;
8F862F5912556DEB005D8CB9 = 8F862F5912556DEB005D8CB9 /* PBXTextBookmark */; 8F862F5E12556DEB005D8CB9 /* PBXTextBookmark */ = 8F862F5E12556DEB005D8CB9 /* PBXTextBookmark */;
8F862F5B12556DEB005D8CB9 = 8F862F5B12556DEB005D8CB9 /* PBXTextBookmark */; 8F862F6D12556E1E005D8CB9 /* PBXTextBookmark */ = 8F862F6D12556E1E005D8CB9 /* PBXTextBookmark */;
8F862F5D12556DEB005D8CB9 = 8F862F5D12556DEB005D8CB9 /* PBXTextBookmark */; 8F862F8E12557078005D8CB9 /* PBXTextBookmark */ = 8F862F8E12557078005D8CB9 /* PBXTextBookmark */;
8F862F5E12556DEB005D8CB9 = 8F862F5E12556DEB005D8CB9 /* PBXTextBookmark */; 8F862FB812557E0E005D8CB9 /* PBXTextBookmark */ = 8F862FB812557E0E005D8CB9 /* PBXTextBookmark */;
8F862F6D12556E1E005D8CB9 = 8F862F6D12556E1E005D8CB9 /* PBXTextBookmark */; 8FCDFBAD125D78C3003EB5FF /* PBXTextBookmark */ = 8FCDFBAD125D78C3003EB5FF /* PBXTextBookmark */;
8F862F8E12557078005D8CB9 = 8F862F8E12557078005D8CB9 /* PBXTextBookmark */; 8FCDFBAE125D78C3003EB5FF /* PBXTextBookmark */ = 8FCDFBAE125D78C3003EB5FF /* PBXTextBookmark */;
8F862F8F12557078005D8CB9 = 8F862F8F12557078005D8CB9 /* PBXTextBookmark */; 8FCDFBAF125D78C3003EB5FF /* PBXTextBookmark */ = 8FCDFBAF125D78C3003EB5FF /* PBXTextBookmark */;
8F862FA212557229005D8CB9 = 8F862FA212557229005D8CB9 /* PBXTextBookmark */; 8FCDFBB0125D78C3003EB5FF /* PBXTextBookmark */ = 8FCDFBB0125D78C3003EB5FF /* PBXTextBookmark */;
8F862FB412557385005D8CB9 /* PBXTextBookmark */ = 8F862FB412557385005D8CB9 /* PBXTextBookmark */;
}; };
sourceControlManager = 8F862F081255672E005D8CB9 /* Source Control */; sourceControlManager = 8F862F081255672E005D8CB9 /* Source Control */;
userBuildSettings = { userBuildSettings = {
Expand Down Expand Up @@ -230,23 +229,23 @@
}; };
8F862F141255680C005D8CB9 /* AFKDownloadWorker.h */ = { 8F862F141255680C005D8CB9 /* AFKDownloadWorker.h */ = {
uiCtxt = { uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {1859, 816}}"; sepNavIntBoundsRect = "{{0, 0}, {1652, 1041}}";
sepNavSelRange = "{609, 0}"; sepNavSelRange = "{609, 0}";
sepNavVisRange = "{476, 413}"; sepNavVisRange = "{0, 1075}";
}; };
}; };
8F862F151255680C005D8CB9 /* AFKDownloadManager.m */ = { 8F862F151255680C005D8CB9 /* AFKDownloadManager.m */ = {
uiCtxt = { uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {1652, 2192}}"; sepNavIntBoundsRect = "{{0, 0}, {1964, 2176}}";
sepNavSelRange = "{1404, 0}"; sepNavSelRange = "{1404, 0}";
sepNavVisRange = "{211, 1123}"; sepNavVisRange = "{1281, 1633}";
}; };
}; };
8F862F161255680C005D8CB9 /* AFKDownloadManager.h */ = { 8F862F161255680C005D8CB9 /* AFKDownloadManager.h */ = {
uiCtxt = { uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {1652, 624}}"; sepNavIntBoundsRect = "{{0, 0}, {1652, 1041}}";
sepNavSelRange = "{401, 0}"; sepNavSelRange = "{592, 167}";
sepNavVisRange = "{0, 440}"; sepNavVisRange = "{0, 820}";
}; };
}; };
8F862F1A1255688D005D8CB9 /* DemoImageLoaderController.h */ = { 8F862F1A1255688D005D8CB9 /* DemoImageLoaderController.h */ = {
Expand All @@ -258,9 +257,9 @@
}; };
8F862F1B1255688D005D8CB9 /* DemoImageLoaderController.m */ = { 8F862F1B1255688D005D8CB9 /* DemoImageLoaderController.m */ = {
uiCtxt = { uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {1652, 2112}}"; sepNavIntBoundsRect = "{{0, 0}, {1652, 2128}}";
sepNavSelRange = "{3649, 245}"; sepNavSelRange = "{1282, 39}";
sepNavVisRange = "{1990, 2118}"; sepNavVisRange = "{7, 2003}";
}; };
}; };
8F862F3912556C27005D8CB9 /* PBXTextBookmark */ = { 8F862F3912556C27005D8CB9 /* PBXTextBookmark */ = {
Expand All @@ -285,36 +284,6 @@
rLen = 0; rLen = 0;
rLoc = 9223372036854775808; rLoc = 9223372036854775808;
}; };
8F862F5912556DEB005D8CB9 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 1D3623250D0F684500981E51 /* AFKLoadManagerAppDelegate.m */;
name = "AFKLoadManagerAppDelegate.m: 23";
rLen = 0;
rLoc = 536;
rType = 0;
vrLen = 2229;
vrLoc = 0;
};
8F862F5B12556DEB005D8CB9 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 8F862F151255680C005D8CB9 /* AFKDownloadManager.m */;
name = "AFKDownloadManager.m: 81";
rLen = 0;
rLoc = 1404;
rType = 0;
vrLen = 1123;
vrLoc = 211;
};
8F862F5D12556DEB005D8CB9 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 8F862F161255680C005D8CB9 /* AFKDownloadManager.h */;
name = "AFKDownloadManager.h: 17";
rLen = 0;
rLoc = 401;
rType = 0;
vrLen = 440;
vrLoc = 0;
};
8F862F5E12556DEB005D8CB9 /* PBXTextBookmark */ = { 8F862F5E12556DEB005D8CB9 /* PBXTextBookmark */ = {
isa = PBXTextBookmark; isa = PBXTextBookmark;
fRef = 8F862F131255680C005D8CB9 /* AFKDownloadWorker.m */; fRef = 8F862F131255680C005D8CB9 /* AFKDownloadWorker.m */;
Expand Down Expand Up @@ -345,34 +314,54 @@
vrLen = 377; vrLen = 377;
vrLoc = 0; vrLoc = 0;
}; };
8F862F8F12557078005D8CB9 /* PBXTextBookmark */ = { 8F862FB812557E0E005D8CB9 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 8F862F161255680C005D8CB9 /* AFKDownloadManager.h */;
name = "AFKDownloadManager.h: 32";
rLen = 167;
rLoc = 592;
rType = 0;
vrLen = 820;
vrLoc = 0;
};
8FCDFBAD125D78C3003EB5FF /* PBXTextBookmark */ = {
isa = PBXTextBookmark; isa = PBXTextBookmark;
fRef = 8F862F1B1255688D005D8CB9 /* DemoImageLoaderController.m */; fRef = 8F862F1B1255688D005D8CB9 /* DemoImageLoaderController.m */;
name = "DemoImageLoaderController.m: 72"; name = "DemoImageLoaderController.m: 36";
rLen = 39;
rLoc = 1282;
rType = 0;
vrLen = 2003;
vrLoc = 7;
};
8FCDFBAE125D78C3003EB5FF /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 8F862F151255680C005D8CB9 /* AFKDownloadManager.m */;
name = "AFKDownloadManager.m: 73";
rLen = 0; rLen = 0;
rLoc = 2792; rLoc = 1404;
rType = 0; rType = 0;
vrLen = 2217; vrLen = 1633;
vrLoc = 507; vrLoc = 1281;
}; };
8F862FA212557229005D8CB9 /* PBXTextBookmark */ = { 8FCDFBAF125D78C3003EB5FF /* PBXTextBookmark */ = {
isa = PBXTextBookmark; isa = PBXTextBookmark;
fRef = 8F862F1B1255688D005D8CB9 /* DemoImageLoaderController.m */; fRef = 1D3623250D0F684500981E51 /* AFKLoadManagerAppDelegate.m */;
name = "DemoImageLoaderController.m: 100"; name = "AFKLoadManagerAppDelegate.m: 23";
rLen = 0; rLen = 0;
rLoc = 3432; rLoc = 536;
rType = 0; rType = 0;
vrLen = 2296; vrLen = 2253;
vrLoc = 1760; vrLoc = 98;
}; };
8F862FB412557385005D8CB9 /* PBXTextBookmark */ = { 8FCDFBB0125D78C3003EB5FF /* PBXTextBookmark */ = {
isa = PBXTextBookmark; isa = PBXTextBookmark;
fRef = 8F862F1B1255688D005D8CB9 /* DemoImageLoaderController.m */; fRef = 8F862F141255680C005D8CB9 /* AFKDownloadWorker.h */;
name = "DemoImageLoaderController.m: 107"; name = "AFKDownloadWorker.h: 38";
rLen = 245; rLen = 0;
rLoc = 3649; rLoc = 609;
rType = 0; rType = 0;
vrLen = 2118; vrLen = 1075;
vrLoc = 1990; vrLoc = 0;
}; };
} }
29 changes: 16 additions & 13 deletions AFKLoadManager.xcodeproj/marcot.perspectivev3
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@
<key>Layout</key> <key>Layout</key>
<array> <array>
<dict> <dict>
<key>BecomeActive</key>
<true/>
<key>ContentConfiguration</key> <key>ContentConfiguration</key>
<dict> <dict>
<key>PBXBottomSmartGroupGIDs</key> <key>PBXBottomSmartGroupGIDs</key>
Expand Down Expand Up @@ -276,6 +278,9 @@
<key>PBXSmartGroupTreeModuleOutlineStateSelectionKey</key> <key>PBXSmartGroupTreeModuleOutlineStateSelectionKey</key>
<array> <array>
<array> <array>
<integer>7</integer>
<integer>5</integer>
<integer>1</integer>
<integer>0</integer> <integer>0</integer>
</array> </array>
</array> </array>
Expand Down Expand Up @@ -308,37 +313,35 @@
<key>Dock</key> <key>Dock</key>
<array> <array>
<dict> <dict>
<key>BecomeActive</key>
<true/>
<key>ContentConfiguration</key> <key>ContentConfiguration</key>
<dict> <dict>
<key>PBXProjectModuleGUID</key> <key>PBXProjectModuleGUID</key>
<string>8F862F0A1255674F005D8CB9</string> <string>8F862F0A1255674F005D8CB9</string>
<key>PBXProjectModuleLabel</key> <key>PBXProjectModuleLabel</key>
<string>DemoImageLoaderController.m</string> <string>AFKDownloadWorker.h</string>
<key>PBXSplitModuleInNavigatorKey</key> <key>PBXSplitModuleInNavigatorKey</key>
<dict> <dict>
<key>Split0</key> <key>Split0</key>
<dict> <dict>
<key>PBXProjectModuleGUID</key> <key>PBXProjectModuleGUID</key>
<string>8F862F0B1255674F005D8CB9</string> <string>8F862F0B1255674F005D8CB9</string>
<key>PBXProjectModuleLabel</key> <key>PBXProjectModuleLabel</key>
<string>DemoImageLoaderController.m</string> <string>AFKDownloadWorker.h</string>
<key>_historyCapacity</key> <key>_historyCapacity</key>
<integer>0</integer> <integer>0</integer>
<key>bookmark</key> <key>bookmark</key>
<string>8F862FB412557385005D8CB9</string> <string>8FCDFBB0125D78C3003EB5FF</string>
<key>history</key> <key>history</key>
<array> <array>
<string>8F862F3912556C27005D8CB9</string> <string>8F862F3912556C27005D8CB9</string>
<string>8F862F4812556C4D005D8CB9</string> <string>8F862F4812556C4D005D8CB9</string>
<string>8F862F5912556DEB005D8CB9</string>
<string>8F862F5B12556DEB005D8CB9</string>
<string>8F862F5D12556DEB005D8CB9</string>
<string>8F862F5E12556DEB005D8CB9</string> <string>8F862F5E12556DEB005D8CB9</string>
<string>8F862F6D12556E1E005D8CB9</string>
<string>8F862F8E12557078005D8CB9</string> <string>8F862F8E12557078005D8CB9</string>
<string>8F862FA212557229005D8CB9</string> <string>8F862FB812557E0E005D8CB9</string>
<string>8FCDFBAD125D78C3003EB5FF</string>
<string>8FCDFBAE125D78C3003EB5FF</string>
<string>8FCDFBAF125D78C3003EB5FF</string>
<string>8F862F6D12556E1E005D8CB9</string>
</array> </array>
</dict> </dict>
<key>SplitCount</key> <key>SplitCount</key>
Expand Down Expand Up @@ -461,11 +464,11 @@
</array> </array>
<key>TableOfContents</key> <key>TableOfContents</key>
<array> <array>
<string>8F862FB512557385005D8CB9</string> <string>8FCDFBB1125D78C3003EB5FF</string>
<string>1CA23ED40692098700951B8B</string> <string>1CA23ED40692098700951B8B</string>
<string>8F862FB612557385005D8CB9</string> <string>8FCDFBB2125D78C3003EB5FF</string>
<string>8F862F0A1255674F005D8CB9</string> <string>8F862F0A1255674F005D8CB9</string>
<string>8F862FB712557385005D8CB9</string> <string>8FCDFBB3125D78C3003EB5FF</string>
<string>1CA23EDF0692099D00951B8B</string> <string>1CA23EDF0692099D00951B8B</string>
<string>1CA23EE00692099D00951B8B</string> <string>1CA23EE00692099D00951B8B</string>
<string>1CA23EE10692099D00951B8B</string> <string>1CA23EE10692099D00951B8B</string>
Expand Down
1 change: 1 addition & 0 deletions Classes/AFKDownloadManager.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@


+ (AFKDownloadManager *) defaultManager; + (AFKDownloadManager *) defaultManager;
+ (void) queueDownloadFromURL:(NSURL *) url withHTTPParameters:(NSDictionary *) parameters target:(id) target selector:(SEL) selector atTopOfQueue:(BOOL) atTopOfQueue; + (void) queueDownloadFromURL:(NSURL *) url withHTTPParameters:(NSDictionary *) parameters target:(id) target selector:(SEL) selector atTopOfQueue:(BOOL) atTopOfQueue;
+ (void) queueDownloadFromURL:(NSURL *) url method:(NSString *) method queryParameters:(NSDictionary *) queryParameters HTTPParameters:(NSDictionary *) HTTPParameters target:(id) target selector:(SEL) selector atTopOfQueue:(BOOL) atTopOfQueue;


- (void) workerIsDone:(AFKDownloadWorker *) worker; - (void) workerIsDone:(AFKDownloadWorker *) worker;


Expand Down
Loading

0 comments on commit 06dfd42

Please sign in to comment.