Sha256: 2022385077e19f69314c252623e049859987a7230cf516cf3de0f28e00092c43
Contents?: true
Size: 461 Bytes
Versions: 18
Compression:
Stored size: 461 Bytes
Contents
# frozen_string_literal: true module Grape module ServeStream # Response should respond to to_path method # for using Rack::SendFile middleware class SendfileResponse < Rack::Response def respond_to?(method_name, include_all = false) if method_name == :to_path @body.respond_to?(:to_path, include_all) else super end end def to_path @body.to_path end end end end
Version data entries
18 entries across 18 versions & 2 rubygems