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

bookMaking 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?

正しい答えを選んでください

question mark

What type does the GetAsync method of HttpClient return?

正しい答えを選んでください

question mark

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

正しい答えを選んでください

すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 2.  5

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

セクション 2.  5
some-alt