class Protocol::HTTP::Body::Stream
def close_read(error = nil)
If, while processing the data that was read from this stream, an error is encountered, it should be passed to this method.
Close the input body.
def close_read(error = nil) if input = @input @input = nil @closed_read = true @buffer = nil input.close(error) end end