|
|
|
|
|
by colejohnson66
93 days ago
|
|
The boilerplate of not having sane defaults. .NET is much simpler: using HttpClient client = new();
HttpResponseMessage response = await client.GetAsync("https://...");
if (response.StatusCode is HttpStatusCode.OK)
{
string s = await response.Content.ReadAsStringAsync();
// ...
}
|
|