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