Extract render logic from Hyperdrive::Endpoint so that we can support multiple automatic serialization when request blocks returns ruby Array or Hash. Will likely need to use an Adapter pattern and allow the object responsible for rendering to be injected in at runtime. This should help get hyperdrive to a point where it can flexibly support multiple media types.
Extract
render
logic fromHyperdrive::Endpoint
so that we can support multiple automatic serialization whenrequest
blocks returns rubyArray
orHash
. Will likely need to use an Adapter pattern and allow the object responsible for rendering to be injected in at runtime. This should help gethyperdrive
to a point where it can flexibly support multiple media types.