Commit graph

49 commits

Author SHA1 Message Date
Jack251970
0e366a6269 Use PublicApi.Instance instead of private one 2025-09-23 17:40:54 +08:00
Jack251970
7350c1d4d5 Use Flow.Launcher.Localization to improve code quality 2025-09-23 17:14:30 +08:00
Jack251970
ba0a113cc9 Add translations & Use ShowMsgError 2025-07-20 12:28:55 +08:00
Jack251970
aed134f589 Add translations 2025-07-20 12:15:48 +08:00
Jack251970
0682e9bed1 Improve code quality for public api 2025-07-20 11:38:44 +08:00
Jack251970
ba35f1269b Add GetString api function 2025-06-06 23:07:01 +08:00
Jack251970
03c0ea8b3a Use try-catch to resolve SendAsync issue 2025-06-01 19:32:15 +08:00
Jack251970
e31f14e60d Use local reference instead 2025-04-13 17:11:36 +08:00
Jack251970
0d9ec48e58 Code quality 2025-04-13 16:36:34 +08:00
Jack Ye
25684a92ae
Merge branch 'dev' into dev4 2025-02-17 14:54:06 +08:00
Jack251970
6a2389f4b8 Fix test project build issue 2025-01-27 10:45:05 +08:00
Jack251970
ed16d340cb Improve code quality 2025-01-27 09:40:24 +08:00
Jack251970
1bf045f3e7 Make fileMode usage between progress and non-progress paths consistent 2025-01-19 15:15:02 +08:00
Jack251970
8eb5a4dfca Improve HttpDownloadAsync function & Use it in PluginManager plugin 2025-01-11 13:24:41 +08:00
Vic
00e6e5b30d Remove unused using 2023-04-25 21:02:34 +08:00
Hongtao Zhang
e9bf62ed08
Revert "Merge branch 'handle-icon-urls' of https://github.com/Flow-Launcher/Flow.Launcher into handle-icon-urls"
This reverts commit cae0b7be77, reversing
changes made to ba0aee14ba.
2022-10-30 14:23:04 -05:00
Ioannis G
835b925342
set HttpCompletionOption in Http.SendAsync 2022-01-13 00:36:14 +02:00
Ioannis G
a5b8b0dcb2
add Http.SendAsync, refactor PluginsManifest to use it 2022-01-11 16:07:25 +02:00
Jeremy Wu
9192ab7550 update variable naming convention 2021-02-22 20:36:06 +11:00
Jeremy Wu
5f44663bd7 remove space 2021-02-22 20:33:11 +11:00
Jeremy Wu
a507cbdc60 fix formatting 2021-02-22 20:31:00 +11:00
弘韬 张
cfbdf294bb Add api to Http.cs & message shown up when error thrown 2021-02-22 12:11:02 +08:00
弘韬 张
8071a6afe4 fix potential uri format issue causing program crash 2021-02-22 11:46:31 +08:00
弘韬 张
1ec069bfcf Use HttpCompletionOption.ResponseHeadersRead for Stream reading and downloading 2021-02-14 22:36:05 +08:00
Harry Yu
3453b178e2 Remove socketsHttpHandler 2021-02-01 16:25:57 +08:00
Harry Yu
4cd093dbdf Fix Proxy 2021-02-01 16:03:13 +08:00
弘韬 张
a6609d6b2c Add Cancellationtoken for downloadasync
Remove extra action in http for cancellation due to it will throw TaskCancelledExcpetion internally
2021-01-07 21:37:45 +08:00
弘韬 张
2b085dbcee Merge dev 2021-01-07 20:48:02 +08:00
弘韬 张
f72b716fb4 use string.empty instead of null 2021-01-07 11:20:14 +08:00
弘韬 张
d0d938b92a Add Cancellationtoken for Http.cs 2021-01-07 11:04:07 +08:00
弘韬 张
bc63b9ebfa Change Download to DownloadAsync
Add error handling for download as well
2021-01-04 10:31:05 +08:00
弘韬 张
a8dc1599d7 Add Http Error Handling 2021-01-04 10:28:33 +08:00
弘韬 张
0c97db04d4 1. Change Get method Name to GetAsync
2. Manually replace "#" with "%23" to solve the similar issue in Explorer plugin
3. Add GetAsync method with Uri as argument
4. Remove unused encoding argument
5. Change exception type for WebSearch Plguin
6. Update Comment
2020-12-29 17:50:56 +08:00
弘韬 张
e364b84b84 Use auto property 2020-12-29 17:16:44 +08:00
弘韬 张
4d5119f17d Add out of bound exception for pattern matching 2020-12-29 17:15:34 +08:00
弘韬 张
a806f7d05a Change exception type 2020-12-29 17:14:13 +08:00
弘韬 张
cfa93a2cc6 Add GetStreamAsync method 2020-12-29 17:13:31 +08:00
弘韬 张
7dc66eaa9a Merge dev 2020-12-29 17:12:14 +08:00
Jeremy Wu
a1a45a4989 add eof 2020-12-29 17:49:11 +11:00
弘韬 张
5da8259228 fix an unintended text error
add async await to download manifest task
remove unused encoding name for new GetStreamAsync in Http
fix unintened text error
2020-12-29 13:03:38 +08:00
弘韬 张
f32e202746 Use System.Text.JsonSerializer.DeserializeAsync instead of Newtonsoft.Json since our plugins.json can be large, so no need to create an extra string to store it. 2020-12-29 12:20:13 +08:00
张弘韬
34f51927cf 1. Move PluginsManager constuction to Init().
2. Return HotKeys list when query is like "pm *"
2020-12-27 21:13:25 +08:00
张弘韬
88fa862277 Use event triggered update method instead of checking Proxy every time doing Http request 2020-12-22 00:31:00 +08:00
张弘韬
5ab8c4faa3 Update Proxy every time calling a http request method since the proxy setting won't update automatically without action 2020-12-21 20:55:28 +08:00
张弘韬
85f5766022 Optimize a few code 2020-12-21 19:30:18 +08:00
Jeremy Wu
c8b251d63a use Http.Get from Infrastructure 2020-12-14 08:41:18 +11:00
弘韬 张
c55e889f4f Change Download to HttpClient as well (which change it to async as well) 2020-10-14 11:29:12 +08:00
弘韬 张
a16cc5be8d Move Old HttpWebRequest to HttpClient Instance (solve connection timeout) 2020-10-14 10:48:43 +08:00
Jeremy Wu
3c7f067770 rename all project file name 2020-04-21 21:27:02 +10:00