Comments (4)
At the very least, I think that the HTTP headers should be made available. http://apiwiki.twitter.com/Rate-limiting
Then it would be possible to look at the rate-limiting headers in the response and provide more accurate feedback as to when rate-limits should be reset, for example.
from mgtwitterengine.
I've forked and have a local topic branch that I'm working up patches for this issue.
- Passing the HTTP headers through it pretty straightforward; not too invasive a change.
- Making the response body available to the requestFailed:withError: delegate call is a little bit more work.
For the second case, I'm thinking along these lines:
- Adding a NSHTTPURLResponse field to MGTwitterURLConnection
- Setting that field in the connection:didReceiveResponse: implementation. Only 304 Not Modified logic would be retained there.
- Moving the part of connection:didReceiveResponse: that deals with 4xx status codes into connection:didFinish and using that as a guard condition above the existing code, before it invokes requestSucceeded: on the delegate.
Does that sound reasonable and would the changes be welcomed?
from mgtwitterengine.
Topic branch available here - http://github.com/jabley/MGTwitterEngine/tree/39-error-response-body
from mgtwitterengine.
Ping
http://github.com/jabley/MGTwitterEngine/compare/mattgemmell:master...39-error-response-body
from mgtwitterengine.
Related Issues (20)
- Bug in deleteDirectMessage
- YAJL dependency
- Can I use NSData+Base64.h & NSData+Base64.m in my project? HOT 2
- NSData+Base64.m warning HOT 1
- on iPhone 3GS it is not working HOT 1
- 404 on status update HOT 4
- MGTwitterEngine for armv7s HOT 4
- Twitter Rest API 1.1
- Method getFriendIDsFor not listed HOT 2
- Undefined symbols for architecture armv6: "_xmlFree"
- Error 403 while getFollowers : Twitter Iphone MGTwitterEngine HOT 1
- Problem with updating profile pic.
- xAuth tutorial link broken
- in_reply_to_status_id field is not set
- URL encoding is wrong
- Notice: (8) undefined offset: 1 [APP/vendors/tmhOAuth/tmhOAuth.php line 171]
- Newbie compile problem HOT 1
- Fails to build in xcode 4.1/Lion
- Array index past end of array in NSData+Base64 HOT 7
- Outdated Project? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mgtwitterengine.