public static HttpServer createServer(String webapp, Configuration conf, String[] pathSpecs)
    throws IOException {
    return localServerBuilder(webapp).setFindPort(true).setConf(conf).setPathSpec(pathSpecs)
      .build();
  }
Create an HttpServer instance for the given webapp
@param webapp    the webapp to work with
@param conf      the configuration to use for the server
@param pathSpecs the paths specifications the server will service
@return the server
@throws IOException if it could not be created
hbase-http/src/test/java/org/apache/hadoop/hbase/http/HttpServerFunctionalTest.java