Skip to content

Commit a3975a3

Browse files
committed
implement the Http method in publicapiinstance
1 parent 8b813fe commit a3975a3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Flow.Launcher/PublicAPIInstance.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
using Flow.Launcher.Plugin.SharedModel;
1818
using System.Threading;
1919
using System.IO;
20+
using Flow.Launcher.Infrastructure.Http;
2021

2122
namespace Flow.Launcher
2223
{
@@ -134,12 +135,12 @@ public List<PluginPair> GetAllPlugins()
134135

135136
public Task<string> HttpGetStringAsync(string url, CancellationToken token = default)
136137
{
137-
return null;
138+
return Http.GetAsync(url);
138139
}
139140

140141
public Task<Stream> HttpGetStreamAsync(string url, CancellationToken token = default)
141142
{
142-
return null;
143+
return Http.GetStreamAsync(url);
143144
}
144145

145146
#endregion

0 commit comments

Comments
 (0)