module Protocol::HTTP::Body::Reader

def close(error = nil)

@parameter error [Exception | Nil] the error that caused the stream to be closed, if any.

Close the connection as quickly as possible. Discards body. May close the underlying connection if necessary to terminate the stream.
def close(error = nil)
	if @body
		@body.close(error)
		@body = nil
	end
end