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