class Grape::ServeStream::SendfileResponse
Response should respond to to_path
method for using Rack::SendFile middleware
Public Instance Methods
Source
# File lib/grape/serve_stream/sendfile_response.rb, line 8 def respond_to?(method_name, include_all = false) if method_name == :to_path @body.respond_to?(:to_path, include_all) else super end end
Calls superclass method
Source
# File lib/grape/serve_stream/sendfile_response.rb, line 16 def to_path @body.to_path end