public Response serve(String uri, String method, Properties header, Properties parms,
      Properties files) {
    Logger.log("URI: " + uri);
    if (uri.endsWith("/sayhello")) {
      System.out.println("header: " + header);
      System.out.println("parms: " + parms);
      System.out.println("method: " + method);
      StringBuffer html = new StringBuffer();
      String name = parms.getProperty("name");
      String car = parms.getProperty("car");
      html.append("<html><head><title>Hello: " + name + "</title></head>");
      html.append("<body>");
      html.append("<h1>This is my way of saying hello</h1>");
      html.append("<h2>Hello !</h2>");
      html.append("<h3>Your name is:</h3>");
      html.append("&quot;" + name + "&quot;");
      html.append("<h3>Your prefered car is:</h3>");
      html.append("&quot;" + car + "&quot;");
      html.append("<br><hr>to start again click <a href='http://localhost:4450/'>here</a>");
      html.append("</body></html>");

      return new NanoHTTPD.Response(HTTP_OK, MIME_HTML, html.toString());
    } else {
      StringBuffer html = new StringBuffer();
      html.append("<html><head><title>Say Hello Demo</title></head>");
      html.append("<body>");
      html.append("Hello, can you please tell me your name?");
      html.append("<form name='myform' action='http://localhost:4450/sayhello' method='get'>");
      html.append("<div align='center'><br><br>");
      html.append("<input type='text' id='name_input' name='name' size='25' value='Enter your name here!'><br>");
      html.append("<p>Prefered Car:<br>");
      html.append("<select name='car'><option value=\"volvo\">Volvo</option>");
      html.append("<option value=\"mercedes\">Mercedes</option>");
      html.append("<option value=\"audi\">Audi</option></select></p>");
      html.append("<br><input type='submit' value='Send me your name!'><br>");
      html.append("</div></form>");

      html.append("</body></html>");
      return new NanoHTTPD.Response(HTTP_OK, MIME_HTML, html.toString());
    }
  }
Represent a simple client server browser app where the user can tell his name and then the server
is saying hello.

@author ddary
selendroid-test-app/src/main/java/io/selendroid/testapp/server/HttpServer.java