Commit graph

26 commits

Author SHA1 Message Date
弘韬 张
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