HA4IoT.Networking.Http.HttpRequestController.Handle C# (CSharp) Method

Handle() public method

public Handle ( HttpMethod method, string uri ) : HttpRequestDispatcherAction
method HttpMethod
uri string
return HttpRequestDispatcherAction
        public HttpRequestDispatcherAction Handle(HttpMethod method, string uri)
        {
            if (uri == null) throw new ArgumentNullException(nameof(uri));

            var action = new HttpRequestDispatcherAction(method, uri);
            _handlers.Add(action);

            return action;
        }