class Grape::ServeStream::SendfileResponse
Response should respond to to_path
method for using Rack::SendFile middleware
Public Instance Methods
respond_to?(method_name, include_all = false)
click to toggle source
Calls superclass method
# 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
to_path()
click to toggle source
# File lib/grape/serve_stream/sendfile_response.rb, line 16 def to_path @body.to_path end