Making a GET Request
メニューを表示するにはスワイプしてください
Important Points
- We use the HttpClient class to make Get requests;
GetAsyncis an asynchronous method and should be used as such;- The
GetAyncmethod returns aHttpResponseMessageobject; - We can access the returned content using the
ReadAsStringAsyncmethod of theContentattribute fromHttpResponseMessage: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?
すべて明確でしたか?
フィードバックありがとうございます!
セクション 2. 章 5
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください
セクション 2. 章 5