Пример #1
0
 public static void RemoveEndpoint(this HttpServer httpServer, EndpointHandler endpointHandler)
 {
     httpServer.RemoveEndpoint(endpointHandler.HttpMethod, endpointHandler.UrlPattern);
 }
Пример #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));
 }