예제 #1
0
 @Override
 public void handle(HttpServerRequest request) {
   switch (request.method) {
     case "GET":
       route(request, getBindings);
       break;
     case "PUT":
       route(request, putBindings);
       break;
     case "POST":
       route(request, postBindings);
       break;
     case "DELETE":
       route(request, deleteBindings);
       break;
     case "OPTIONS":
       route(request, optionsBindings);
       break;
   }
 }