1 write to _httpClient
Microsoft.DotNet.VersionTools (1)
Automation\GitHubApi\GitHubClient.cs (1)
56
_httpClient
= X509Helper.GetHttpClientWithCertRevocation();
19 references to _httpClient
Microsoft.DotNet.VersionTools (19)
Automation\GitHubApi\GitHubClient.cs (19)
57
_httpClient
.DefaultRequestHeaders.Add("Accept", "application/vnd.github.v3+json");
58
_httpClient
.DefaultRequestHeaders.Add("User-Agent", auth?.User ?? DefaultUserAgent);
61
_httpClient
.DefaultRequestHeaders.Add("Authorization", $"token {auth.AuthToken}");
74
using (HttpResponseMessage response = await
_httpClient
.GetAsync(url))
120
string currentFile = await
_httpClient
.GetStringAsync(fileUrl);
141
using (HttpResponseMessage response = await
_httpClient
.PutAsync(fileUrl, bodyContent))
169
using (HttpResponseMessage response = await
_httpClient
.PostAsync(pullUrl, bodyContent))
212
using (HttpResponseMessage response = await
_httpClient
.SendAsync(request))
233
using (HttpResponseMessage response = await
_httpClient
.GetAsync(queryUrl))
257
using (HttpResponseMessage response = await
_httpClient
.GetAsync(pullRequestUrl))
267
using (HttpResponseMessage response = await
_httpClient
.GetAsync(url))
286
using (HttpResponseMessage response = await
_httpClient
.PostAsync(url, bodyContent))
296
using (HttpResponseMessage response = await
_httpClient
.GetAsync(url))
307
using (HttpResponseMessage response = await
_httpClient
.GetAsync(url))
327
using (HttpResponseMessage response = await
_httpClient
.PostAsync(url, bodyContent))
352
using (HttpResponseMessage response = await
_httpClient
.PostAsync(url, bodyContent))
376
using (HttpResponseMessage response = await
_httpClient
.SendAsync(request))
400
using (HttpResponseMessage response = await
_httpClient
.SendAsync(request))
435
_httpClient
.Dispose();