Moved writing responses to disk to separate file (io.Output).