示例#1
0
        public void RestRequest <T>(Method method, object data = null)
        {
            var requestModal = RestRequestModal.Create(_client.Url, method, data);
            var client       = ClientData.BeforeSend(_client);

            _client.AddHeader(headers, client);
        }
示例#2
0
        public void RestRequest(string url, Method method, object data = null)
        {
            var nexUrl       = ClientData.ParseUrl(_client.Url, url);
            var requestModal = RestRequestModal.Create(nexUrl, method, data);
            var client       = ClientData.BeforeSend(_client);

            _client.AddHeader(headers, client);
        }