|
|
|
@ -11,6 +11,7 @@ namespace HttpClientStudy.Core
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class SimpleHttpClient
|
|
|
|
|
{
|
|
|
|
|
#region Get请求
|
|
|
|
|
public string Get(string url)
|
|
|
|
|
{
|
|
|
|
|
HttpClient client = new HttpClient();
|
|
|
|
@ -98,5 +99,6 @@ namespace HttpClientStudy.Core
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|