class Falcon::Adapters::Input
def rewind
`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.
def rewind if @body and @body.respond_to? :rewind # If the body is not rewindable, this will fail. @body.rewind @buffer = nil @finished = false return true end return false end