Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Making a GET Request | Asynchronous Programming and Introduction to Web Services
Introduction to .NET with C#
course content

Kursusindhold

Introduction to .NET with C#

Introduction to .NET with C#

1. Introduction
2. Asynchronous Programming and Introduction to Web Services
3. Introduction to Databases with .NET
4. CRUD Operations with MySQL
5. Optimizing Database Operations

book
Making a GET Request

Important Points

  • We use the HttpClient class to make Get requests;
  • GetAsync is an asynchronous method and should be used as such;
  • The GetAync method returns a HttpResponseMessage object;
  • We can access the returned content using the ReadAsStringAsync method of the Content attribute from HttpResponseMessage: response.Content.ReadAsStringAsync().

1. What can be used for creating a client in a C# console application?

2. What type does the GetAsync method of HttpClient return?

3. What method should be used for making asynchronous HTTP GET requests with HttpClient?

question mark

What can be used for creating a client in a C# console application?

Select the correct answer

question mark

What type does the GetAsync method of HttpClient return?

Select the correct answer

question mark

What method should be used for making asynchronous HTTP GET requests with HttpClient?

Select the correct answer

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 2. Kapitel 5
Vi beklager, at noget gik galt. Hvad skete der?
some-alt