reads file and pipes output to http response