Esempio n. 1
0
 public static void RemoveEndpoint(this HttpServer httpServer, EndpointHandler endpointHandler)
 {
     httpServer.RemoveEndpoint(endpointHandler.HttpMethod, endpointHandler.UrlPattern);
 }
Esempio n. 2
0
 public static void RegisterEndpoint(this HttpServer httpServer, HttpMethod httpMethod, string urlPattern, string description, Action <EndpointRequestData> requestCallback)
 {
     httpServer.RegisterEndpoint(new EndpointHandler(httpMethod, urlPattern, description, requestCallback));
 }