lib/falcon/adapters/input.rb
# Rewind the input stream back to the start.
#
# `rewind` must be called without arguments. It rewinds the input stream back to the beginning. It must not raise Errno::ESPIPE: that is, it may not be a pipe or a socket. Therefore, handler developers must buffer the input data into some rewindable object if the underlying input stream is not rewindable.
#
# @returns [Boolean] Whether the body could be rewound.
Rewind the input stream back to the start.
`rewind` must be called without arguments. It rewinds the input stream back to the beginning. It must not raise Errno::ESPIPE: that is, it may not be a pipe or a socket. Therefore, handler developers must buffer the input data into some rewindable object if the underlying input stream is not rewindable.
Rewind the input stream back to the start . ` rewind ` must be called without arguments . It rewinds the input stream back to the beginning . It must not raise Errno :: ESPIPE : that is it may not be a pipe or a socket . Therefore handler developers must buffer the input data into some rewindable object if the underlying input stream is not rewindable .
def rewind
				if @body and @body.respond_to? :rewind
					@body.rewind
					@buffer = nil
					@finished = false
					return true
				end
				return false
			end
def rewind if @body and @body . respond_to? :rewind @body . rewind @buffer = nil @finished = false return true end return false end
Rewind the input stream back to the start.
Rewind the input stream back to the start .
# If the body is not rewindable, this will fail.
[Boolean] Whether the body could be rewound.
[ Boolean ] Whether the body could be rewound .