Sha256: daaaecd0e3892dd1170adc176c26665b5ae8402098618221c47c7e19c6aac363
Contents?: true
Size: 521 Bytes
Versions: 18
Compression:
Stored size: 521 Bytes
Contents
# frozen_string_literal: true module Grape module ServeStream # 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 class StreamResponse attr_reader :stream # @param stream [Object] def initialize(stream) @stream = stream end # Equality provided mostly for tests. # # @return [Boolean] def ==(other) stream == other.stream end end end end
Version data entries
18 entries across 18 versions & 2 rubygems