private void respond(BufferedWriter out, String response) throws IOException {
        out.append(response);
        out.append("\n");
        out.flush();
    }
private void respond ( BufferedWriter out , String response ) throws IOException { out . append ( response ) ; out . append ( "\n" ) ; out . flush ( ) ; }
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