Comments (6)
It would be nice if the entire response object was available. Embedded resources could just use the response from the parent resource.
from hyperclient.
@bkeepers yeah, having the entire response object separated seems like a good idea. Are you up for implementing it?
from hyperclient.
+1 on keeping the whole response object around. And proxying various methods to is (like success?
and status
). If no one minds, I may turn this Issue into a Pull Request so that people have something concrete to poke at.
Also, right now, if someone sends back no body (say, for a 404 or a 204), .resource
blows up trying to call []
on nil
, which seems related.
from hyperclient.
Well, I made a branch about this: https://github.com/benhamill/hyperclient/compare/keep_response_object_in_resource
For some reason, though, I can't seem to attach the code to this issue. It keeps giving me this message:
Error creating pull request: Not Allowed (HTTP 405)
I'll try again later on.
from hyperclient.
OK. Well, see #46 for a PR on this topic.
from hyperclient.
Closed by #46
from hyperclient.
Related Issues (20)
- Bad interaction between URITemplate and Faraday parameter parsing means dropped values from queries including multiple values for a parameter
- Release version 0.8.3? HOT 9
- hyperclient v0.8.3 breaks compatibility with Faraday < v0.9 HOT 2
- Current homepage link is broken
- Error parsing response HOT 12
- Async background requests with futuroscope have not been async since 2014 HOT 5
- Link method_missing delegation wrongly returns nil when field value is false HOT 1
- Outdated faraday due to faraday_hal_middleware HOT 6
- wierd post repeat HOT 8
- Handle non-hal+json responses HOT 3
- Broken specs on Ruby 2.6.3 HOT 1
- EntryPoint#connection allows you to set faraday middleware after setting the adapter HOT 3
- Release v. Next HOT 1
- faraday_digestauth incompatible with Faraday 1.0+ HOT 3
- Fix remaining Minitest 6 warnings
- Faraday is not using ENV variables for proxy HOT 4
- Ruby 3 upgrade throws kernel error for the overwritten each method HOT 4
- faraday_middleware is deprecated HOT 4
- Migrate Travis-CI to Github Actions
- Go too nighttime's in this'll front 34 78 HOT 1
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 hyperclient.