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); }
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); }