code: private void respond(BufferedWriter out, String response) throws IOException {
          out.append(response);
          out.append("\n");
          out.flush();
      }
docs: Writes line-based response.
  @param out the channel used to write back response
  @param response A string that ends with a new line
  @throws IOException