System.Net.Http.HttpClient.GetStreamAsync C# (CSharp) Method

GetStreamAsync() public method

public GetStreamAsync ( string requestUri ) : Task
requestUri string
return Task
        public Task<Stream> GetStreamAsync(string requestUri)
        {
            return GetStreamAsync(CreateUri(requestUri));
        }

Same methods

HttpClient::GetStreamAsync ( Uri requestUri ) : Task

Usage Example

示例#1
0
 static void Main(string[] args)
 {
     string address = "http://127.0.0.1:645";
     Uri uri = new Uri(address);
     Console.WriteLine(uri.AbsolutePath); 
     HttpClient http = new HttpClient();
     HttpClientHandler cd = new HttpClientHandler();
     HttpContent hc = 
     
     http.GetStreamAsync(uri);
     Console.WriteLine(http.GetStreamAsync(uri).Result.ToString());
     Console.ReadLine();
 }
All Usage Examples Of System.Net.Http.HttpClient::GetStreamAsync