class Grape::ServeStream::StreamResponse
A simple class used to identify responses which represent streams (or files) and do not need to be formatted or pre-read by Rack::Response
Attributes
Public Class Methods
Source
# File lib/grape/serve_stream/stream_response.rb, line 11 def initialize(stream) @stream = stream end
@param stream [Object]
Public Instance Methods
Source
# File lib/grape/serve_stream/stream_response.rb, line 18 def ==(other) stream == other.stream end
Equality provided mostly for tests.
@return [Boolean]