Пример #1
0
        private async Task <RestResponse> Request(Uri uri, string data)
        {
            var response = await http.PostAsync(uri, new StringContent(data));

            return(await RestResponse.Create(response));
        }
Пример #2
0
        private async Task <RestResponse> Request(Uri uri)
        {
            var response = await http.GetAsync(uri);

            return(await RestResponse.Create(response));
        }