body.each { |string| send_data string } On Fri, Oct 18, 2013 at 10:39 AM, Daniel Doubrovkine wrote: > I am trying to integrate Grape + Goliath. > > From Grape we get something like this: > > [200, {"Content-Type"=>"application/json", "Content-Length"=>"15"}, > # @status=200, @header={"Content-Type"=>"application/json", > "Content-Length"=>"15"}, @chunked=false, @writer=# (lambda)>, @block=nil, @length=15, @body=["{\"ping\":\"pong\"}"]>, > @block=#, > @closed=false>] > > What's the proper way to transform it into a Goliath-compatible response, > basically how do I cleanly translate a BodyProxy into a string body? > > Thanks, > dB. > > -- > > dB. | Moscow - Geneva - Seattle - New York > code.dblock.org - @dblockdotorg - > artsy.net - github/dblock > > -- > > --- > You received this message because you are subscribed to the Google Groups > "Rack Development" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rack-devel+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- --- You received this message because you are subscribed to the Google Groups "Rack Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to rack-devel+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.