We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I would like stream attachments through grape. By reading the doc, I can do this :
class AttachmentStream attr_reader :response def initialize(response) @response = response end def each yield response.read_body end end source = URI(@attachment_context.url) Net::HTTP.start(source.host, source.port, use_ssl: true) do |http| req = Net::HTTP::Get.new source http.request(req) do |res| stream AttachmentStream.new(res) end end
Unfortunately, there is a warning that says :
'[DEPRECATION] Argument as FileStreamer-like object is deprecated. Use path to file instead.'
Is is still relevant ?
Thanks
The text was updated successfully, but these errors were encountered:
Are you reading 1.4.0 docs? #1520 has not been released yet.
Sorry, something went wrong.
I was reading on master branch, sorry :(
No branches or pull requests
Hi,
I would like stream attachments through grape. By reading the doc, I can do this :
Unfortunately, there is a warning that says :
'[DEPRECATION] Argument as FileStreamer-like object is deprecated. Use path to file instead.'
Is is still relevant ?
Thanks
The text was updated successfully, but these errors were encountered: