예제 #1
0
 private void OnDestroy()
 {
     if (httpServer != null)
     {
         httpServer.RemoveEndpoint(httpMethod, urlPattern);
     }
 }
예제 #2
0
 public static void RemoveEndpoint(this HttpServer httpServer, EndpointHandler endpointHandler)
 {
     httpServer.RemoveEndpoint(endpointHandler.HttpMethod, endpointHandler.UrlPattern);
 }