mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
implement the Http method in publicapiinstance
This commit is contained in:
parent
8b813fef96
commit
a3975a3531
1 changed files with 3 additions and 2 deletions
|
|
@ -17,6 +17,7 @@ using Flow.Launcher.ViewModel;
|
|||
using Flow.Launcher.Plugin.SharedModel;
|
||||
using System.Threading;
|
||||
using System.IO;
|
||||
using Flow.Launcher.Infrastructure.Http;
|
||||
|
||||
namespace Flow.Launcher
|
||||
{
|
||||
|
|
@ -134,12 +135,12 @@ namespace Flow.Launcher
|
|||
|
||||
public Task<string> HttpGetStringAsync(string url, CancellationToken token = default)
|
||||
{
|
||||
return null;
|
||||
return Http.GetAsync(url);
|
||||
}
|
||||
|
||||
public Task<Stream> HttpGetStreamAsync(string url, CancellationToken token = default)
|
||||
{
|
||||
return null;
|
||||
return Http.GetStreamAsync(url);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
|
|||
Loading…
Reference in a new issue