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); }
private async Task SendRequest(HttpClient client, RestRequestModal model) { await ClientData.PostAsync(client, _client.BaseUrl() + "/api/rest/FromRequest", model); }