Blake Watters
af7a7d22b6
Lowered logging level for body from Info to Debug
2011-12-15 13:41:00 -05:00
Blake Watters
e5e05a0563
Added delegate callback when authentication challenge fails. closes #462
2011-12-13 21:16:30 -05:00
Blake Watters
4f24470d13
Merge pull request #465 from rayfix/url-encoding-fix
...
Encoded params from RKURLs getting extra 25's.
2011-12-13 15:02:37 -08:00
Matthias Bartelmeß
e123eaa5fb
Updated RKResponse to respect the encoding returned in the Content-Type header (charset=XXX). Exposed
...
encoding information as methods on RKResponse
2011-12-13 17:03:31 -05:00
Ray Fix
21c3b6af39
Fix static analayzer warning for uninitialized variable
2011-12-13 15:33:14 -05:00
Blake Watters
4c8a7f1103
Merge pull request #470 from inquinity/master
...
Fixed: RKResponse parsedBody will fail when encountering a parsing error if it was called with a nil NSError pointer
2011-12-13 12:12:11 -08:00
Robert Altman
2969e6b9f3
Added missing non-null test for NSError pointer
2011-12-12 17:06:17 -06:00
Ray Fix
7eaa0bccfe
Fix test failure. Encoded URLs getting extra 25's.
2011-12-09 18:18:08 -08:00
Blake Watters
4a45a15da1
Fixed nearly all broken tests for OS X target
2011-12-09 00:30:34 -05:00
Blake Watters
479864902b
Fixed all build warnings on OS X Framework target
2011-12-08 23:23:20 -05:00
Nolan Waite
9cc6de8dc4
Request delegate can learn of authentication failures
2011-12-08 13:17:52 -07:00
Blake Watters
8a39f93e62
Add support for handling 204 'No Content' responses. fixes #450
2011-12-02 09:27:22 -05:00
Blake Watters
563f5e909b
Updated all example projects to build against the new project. Cleaned up header imports for flattened project structure
2011-12-02 09:26:36 -05:00
Blake Watters
f5008ff9fe
Cleaned up broken specs for iOS.
2011-12-02 09:26:35 -05:00
Blake Watters
5b718890ac
Checking in work in progress on the library reorganization
2011-12-02 09:26:35 -05:00
Michael Fleet
0a0c3ac59e
Fixed bug where local requests for bundle resources returned a NSURLResponse instead of a NSHTTPURLResponse, and therefore doesn't respond to statusCode or allHeaderFields.
2011-12-01 11:43:22 -05:00
Michael Fleet
6391e5083a
Fixed bug where escaped spaces (%20) in URLs were stripped by [NSURL path] and not restored, causing request failures.
2011-12-01 11:41:28 -05:00
Tony Lee
a5661061ec
The OAuth use correct parameters to make signature for HTTP PUT/POST.
2011-11-10 17:29:27 +08:00
Blake Watters
fd80eae643
Reworked reachability initialization to support usage when there is no Internet connectivity.
...
* When the reachabilityObserver property of RKClient is nil, assume we have reachability
* When the baseURL configured contains an IP address or localhost, use hostname based reachability
* Else fall through to using Internet reachability if the user has not configured an observer directly
2011-11-09 08:17:46 -05:00
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