Blake Watters
dad00a4f6f
Fix typo 'current' => 'concurrent'
2011-11-04 11:28:54 -03:00
Blake Watters
6ebe3c2431
Add missing comma in reachabilityFlagsDescription for OS X build
2011-10-24 23:35:50 -03:00
Blake Watters
a3d15d8e0d
Add missing scheduleObserver call in initWithAddress: refs #408
2011-10-20 11:58:21 -04:00
Blake Watters
a863da18ec
Revert "Use run loop instead of dispatch queue as unscheduling via NULL queue is triggering errors. refs #408 "
...
This reverts commit fa6cff8221 .
2011-10-20 11:55:00 -04:00
Blake Watters
fa6cff8221
Use run loop instead of dispatch queue as unscheduling via NULL queue is triggering errors. refs #408
2011-10-20 11:40:56 -04:00
Blake Watters
d75fd7d0b0
Refactored RKReachabilityObserver to work around issues with iOS 5 + host reachability and expand its capabilities. closes #408
...
* Added support for monitoring by IP address or hostname as well as local Wifi and Internet access generally
* Eliminated usage of synchronous calls to obtain reachability flags during status checks
* Reworked SystemConfiguration reachability callback to cache flags
* RKClient now monitors Internet access instead of hostname based reachability by default. baseURLReachabilityObserver eliminated in favor of reachabilityObserver. It is now a retain property that can be customized
* Queue suspension is now tied to the reachability observer rather than baseURL mutation
2011-10-19 08:51:37 -04:00
Blake Watters
eb9dec5953
Replaced TDOAuth with GCOAuth. fixes #407
2011-10-18 23:51:49 -04:00
Blake Watters
585d4aafc8
Implemented MIMETypeForPathExtension for NSURL and NSString. refs #409
...
Refactored duplicated code for returning the MIME Type based on file path extension using
Core Services UTI.
2011-10-16 02:06:58 -04:00
Brad Phelan
d6e26a6f9d
Implemented support for URL encoding an array of dictionaries. fixes #391
...
For example the following dict
terms (
{
lhs = "blood_glucose_measurement";
op = gt;
rhs = 10;
}
)
should generate the following URL encoded string
type=or&terms[][lhs]=blood_glucose_measurement&terms[][op]=gt&terms[][rhs]=10
2011-10-14 08:52:25 -04:00
Ivan Vučica
33b663a3cf
Fixed building on OS X.
2011-10-13 15:43:47 +02:00
Blake Watters
214efd31d5
Fix issue with incorrectly built OAuth 1.0 invocation of TDOAuth. fixes #396
...
Began cleanup of some category methods to eliminate duplicated functionality across the library.
2011-10-12 09:55:38 -04:00
Blake Watters
d5987f0433
Workaround for crashes due to over-release of RKParams on iOS 5. fixes #392
2011-10-11 09:21:08 -04:00
Blake Watters
da38149e44
Eliminated the use of @compatibility_alias to work around compiler issues reported on the mailing list
2011-09-29 10:10:35 -04:00
OpenThread
f894226908
Implemented full support for generation of cache keys on RKParams. fixes #272
...
* Builds on work started by @OpenFibers.
* Should eliminate all cache warnings.
* Added FileMD5Hash library for efficiently computing MD5 for files
* Extended RKParams to return composite MD5 for all attachments
* Implemented MD5 method on each RKParamsAttachment instance
* Updated RKRequest to utilize new MD5 sums and enabled cache keys for RKParams
2011-09-28 23:20:26 -04:00
Blake Watters
e86d9375bd
Added test coverage and fixes for cases where the parser returns nil, but no error occurred. fixes #365
2011-09-28 09:43:35 -04:00
Sergej Tatarincev
3983bd00f8
Added download progress
2011-09-28 12:23:28 +03:00
Blake Watters
2d281e60d3
Investigated issues surrounding inability to change HTTP AUTH credentials thoroughly. fixes #250 , #237 , #127
...
These issues has been open for some time. I have added thorough unit test coverage
for scenarios of mutating the HTTP AUTH credentials on the RKClient and on individual
RKRequest instances. Everything seems to work fine.
Also added RKAuthenticationExample to RKCatalog for testing. Needs to be updated with
support for using OAuth.
2011-09-27 23:59:06 -04:00
Ben Einstein
06537b8d18
This causes OS X builds to fail (and isn't necessary anyway)
2011-09-27 01:15:43 -03:00
Blake Watters
947cf378c7
Merge pull request #346 from ralfvdz/patch-1
...
Log the body when all data has been received.
2011-09-21 05:53:07 -07:00
Blake Watters
c493ec3cd5
Fix for missing rename on OAuth client
2011-09-20 19:04:43 -04:00
Blake Watters
eb887e38c6
Refactored OAuth support for merge into master. fixes #84 , #211
...
Cleaned up @rodchile's excellent work integration OAuth 1.0 and 2.0 into RestKit. Changes
are as follows:
* Introduced new RKRequestAuthenticationType to replace the forceBasicAuthentication and other
methods for influencing how authorization works.
* Moved TDOAuth code into Vendor/
* Renamed authorization code flow classes and delegate methods for clarity.
2011-09-20 15:52:17 -04:00
Greg Combs
62d7042ebc
Merge pull request #334 from parkerboundy/add-apache-license
...
Add the Apache License to headers (Issue #145 ) Closes #145 . Thanks @parkerboundy.
2011-09-14 21:56:15 -07:00
Ralf van der Zanden
41c8d27f04
Log the body when all data has been received. (body not always available/complete in didReceiveResponse)
2011-09-14 14:43:53 +03:00
Blake Watters
b946fc3cd9
Small header file changes for Appledoc output changes
2011-09-13 13:13:11 -04:00
Greg Combs
20fb9043b3
Clarified header documentation for RKRequest's cancel method.
2011-09-13 10:53:19 -05:00
Greg Combs
fc5f2b38be
Minor cleanup of some whitespace after recent feature pull requests
2011-09-13 01:30:43 -05:00
Greg Combs
6dd1e8da40
Now gracefully handles escaping interpolated resource paths in RKRouter, RKMakePathWithObject, and RKPathMatcher. By adding an encoding handler to SOCKit, we now (by default, but optionally) add percent escapes to each object's property value while it's being interpolated into a resource path pattern, like /stuff/things/:others?apikey=:apikey ... that way it won't brutally mangle the slashes and question marks and ampersands that exist in the resource path pattern, while at the same time properly escaping those same characters when they occur inside the object's property value. Closes #221
2011-09-13 00:50:55 -05:00
Blake Watters
5c359edfc5
Use relative imports for headers in Support module. Removed import of SCNetworkReachability in RKClient
2011-09-08 19:26:33 -04:00
Blake Watters
4226067b8a
Use Grand Central Dispatch to fire reachability notifications for IP addresses
2011-09-08 19:22:58 -04:00
Blake Watters
bebc08e34c
Remove improper import of RKObjectLoader in RKClient
2011-09-08 19:22:28 -04:00
Blake Watters
6ed37f0eb9
Fix Cocoa 512 errors logged from RKRequestCache. fixes #246
...
The following changes were made:
* Added isCacheable to RKRequest
* Return nil for cacheKey on non-cacheable RKRequests
* Updated RKRequestCache to ensure attempts to cache uncacheable requests has no effect
* Added basic unit tests and expanded comments on some parts of the cache API
2011-09-07 22:39:57 -04:00
Blake Watters
2a89404f7d
Return nil from needNewBodyStream: to avoid weirdness with connections being revived. refs #335
2011-09-07 21:37:11 -04:00
Parker
e8b24a3959
added apache license to everything in the Network directory
...
I got tired of doing individual commits for each file, so I just did the
rest of the directory.
2011-09-07 10:45:42 -04:00
Parker
43040935d7
added apache license
2011-09-07 10:36:49 -04:00
Parker
f4c83a8ae8
added apache license
2011-09-07 10:36:16 -04:00
Parker
a43b711b14
added apache license
2011-09-07 10:35:40 -04:00
Greg Combs
e38562ffce
Introduces RKPathMatcher. This is basically a dressed up front end to jverkoey/SOCKit. Using this will make it very easy to do complex things with patterns, resource paths, and object property interpolation thereof. Whereas RKMakePathWithObject() once took parenthesized parameters like "/stuff/(things)" it now uses colons like "/stuff/:things". It has specs and updated header docs where appropriate. Closes #305 .
2011-09-06 15:51:18 -05:00
Blake Watters
4299cab994
Added convenience accessors on RKObjectManager for the requestCache and requestQueue. Cleaned up some styling and normalized method names.
2011-09-06 11:36:50 -04:00
Blake Watters
54007c78d4
Reworked Brendan Ribera's contributions around time zone handling to eliminate the use of transient
...
NSDateFormatters, added a preferredDateFormatter for use when serializing dates to strings,
replaced the use of the description method for date encoding to strings with invocation of the
preferredDateFormatter, added new attribute transformation strategy from NSDate -> NSString properties
(also using the preferred date formatter), and provided customization support for date handling globally
and on a per-mapping basis. closes #200 , closes #313 , closes #309 , closes #308
2011-09-05 17:25:43 -04:00
Blake Watters
d9d0f7a650
Eliminated the global sharedQueue in favor of allowing each RKClient to own its a private queue. This eliminates problems where multiple clients are tracking reachability notifications and mutating the suspension state on a single queue. If you want to use a single queue across multiple RKClient instances, you can assign a single queue to both and worry about suspension and reachability yourself. fixes #278
2011-09-03 15:52:45 -04:00
Blake Watters
b96940cc64
Eliminated requirement to use -all_load linker flag. Fixed breakage in OS X builds due to ivar/property name disagreement. Removed references to all_load from the install docs. fixes #239
2011-09-01 20:52:46 -04:00
Blake Watters
f0768cc03c
Fix memory leak of hostname attribute in reachability observer. fixes #268
2011-08-27 21:13:24 -04:00
Blake Watters
218555b195
Do not add headers for params if the request is a GET or a HEAD. refs #303
2011-08-27 19:10:48 -04:00
Blake Watters
0640f20bd2
Added newRequestQueueWithName to the API
2011-08-18 13:00:51 -04:00
Blake Watters
84032d9aa6
De-emphasized the use of the sharedQueue and improved management of queue suspension state when changing out the baseURL on RKClient. This should prevent the queue from becoming suspended beyond the life of an RKClient that suspended it. Queues are now also properties on a per-client and per-request basis, so it is easier to segregated parts of your app into different queues. The relationship between RKRequest and RKRequestQueue should be decoupled at some point.
2011-08-18 11:48:37 -04:00
Blake Watters
be46e3b0f2
Merge branch 'master' of https://github.com/cammm/RestKit into cammm-master
2011-08-16 22:21:07 -04:00
Victor Kryukov
e5dd917209
Fix #180 - Network Activity Indicator Gets Clobbered by Multiple Queues
2011-08-12 12:55:55 -07:00
Blake Watters
9420af3276
Remove observer in dealloc
2011-08-10 20:29:58 -04:00
Cameron Royal
27fc1dbb5e
Merged latest from upstream
2011-08-04 14:54:32 +08:00
Blake Watters
946c558675
Updated appledoc binary and templates. Fixed ampersands in some comments that were blocking Docset generation. Updated Appledoc rake tasks to reflect the exit statuses emitted by appledoc. Pushed 0.9.3 appledoc to restkit.org
2011-08-02 08:42:59 -04:00