Commit Graph

190 Commits

Author SHA1 Message Date
JustArchi
d4345a1a16 Closes #1964 2020-09-13 21:43:25 +02:00
JustArchi
38b40fe93a Misc 2020-09-12 13:27:39 +02:00
JustArchi
033814198f Apply the POST -> GET logic also to 301 2020-09-12 13:26:26 +02:00
JustArchi
568f9bc2e6 Closes #1963 2020-09-12 13:17:43 +02:00
JustArchi
675390a00d Misc
Solves a very rare case of stream error (e.g. IOException) being thrown while reading the stream.
2020-08-29 00:33:24 +02:00
JustArchi
b3d476dea4 Round 2 of nullable checks 2020-08-23 20:45:24 +02:00
JustArchi
f99043db30 Closes #1832 2020-08-23 19:24:10 +02:00
JustArchi
0ddba57c0d Further improve on IProgress<T> idea
@KamushekDev with IProgress we can start reporting progress with precision to a percentage, and let the caller decide what he wants to display.
2020-08-23 13:51:21 +02:00
JustArchi
717257ec9b Misc
@KamushekDev when you subscribe to things like this, it's always worth having try finally block ensuring that you unsubscribe, even in case of unhandled exception in the middle.
2020-08-23 13:14:17 +02:00
Kamushek
a15a6e6fe7 IProgress (#1945) 2020-08-23 13:07:22 +02:00
Łukasz Domeradzki
9fc1ea65a5 Closes #1543 (#1944)
* Start working on nullable checks

help me

* Update GlobalConfig.cs

* Finish initial fixup round

* nullability code review
2020-08-22 21:41:01 +02:00
JustArchi
9af75aca5d Closes #1907 2020-07-23 21:36:05 +02:00
JustArchi
43a36c4f6c Print failed http status codes even when not debugging
Debugging logs every status code, I believe error status codes should be logged even when not debugging, we do not expect those to happen on usual basis, even with Steam
2020-07-03 18:54:13 +02:00
Vitaliy
ea3347b36d Accept HttpContent as data in WebBrowser (#1828) 2020-06-07 17:09:01 +02:00
JustArchi
cb6c5e2de2 Make it possible for WebBrowser to post custom data
While this isn't required for ASF (at least right now), it'll allow plugins to use ASF's WebBrowser for sending e.g. json to third-party endpoints.
2020-06-06 16:34:20 +02:00
JustArchi
149f2e679f Misc 2020-05-27 14:45:27 +02:00
Kamushek
800d10de96 Fixed NullPropagation (#1809)
* Fixed NullPropagation

* Changes to similar methods
2020-05-27 14:42:12 +02:00
JustArchi
ed0e4498b4 Misc 2020-04-18 19:31:13 +02:00
JustArchi
7b9bec217a Misc 2020-04-18 18:35:37 +02:00
JustArchi
83e6addd94 DON'T LOOK
I warned you.
2020-04-18 18:33:27 +02:00
JustArchi
b23f634c9b Implement IAsyncDisposable for all ASF classes that can make use of it 2020-04-18 17:52:11 +02:00
JustArchi
18de88dda8 Misc 2020-04-18 15:22:59 +02:00
JustArchi
4b7369661c Do not dispose WebBrowser.HtmlDocumentResponse
We're disposing inner document already, and this can't be disposed too early
2020-04-18 14:12:45 +02:00
JustArchi
63c8a6540e Fix some disposable patterns 2020-04-18 14:08:37 +02:00
JustArchi
b5ae8eafba Misc 2020-04-18 13:34:25 +02:00
JustArchi
70d89ad008 Update WebBrowser.cs 2020-04-18 00:35:45 +02:00
JustArchi
fab8c667d2 One more fix 2020-04-18 00:34:10 +02:00
JustArchi
85d4dcbe27 Misc AngleSharp improvements 2020-04-18 00:26:54 +02:00
JustArchi
278935661a Use all new decompression methods for HTTP requests 2020-04-17 23:44:36 +02:00
JustArchi
47b729a14d Correct wrong retrying logic for streams 2020-04-08 13:01:21 +02:00
JustArchi
7a521da68b Update WebBrowser.cs 2020-04-08 12:52:01 +02:00
JustArchi
960dbf9b71 Misc refactor 2020-04-08 12:50:58 +02:00
Vitaliy
5e39731a27 Catch exceptions when creating HtmlDocument from stream (#1725)
* Catch exceptions when creating HtmlDocument from stream

* Use proper retry logic if exception occured

* Add null check for document
2020-04-07 22:12:01 +02:00
JustArchi
1e87341877 Small cleanup 2020-04-02 17:16:05 +02:00
Vitaliy
fbe5bd12ae Use streams for http responses instead of strings where possible, replace HtmlAgilityPack with AngleSharp (#1703)
* Replace HAP with AngleSharp, add stream support to WebBrowser

* Fix skipped nullable operator

* Add extension method

* Rename function to be closer to HAP API

* Add JSON deserialization from stream, fix variable names, remove obsolete code

* Add more extension methods

* Fixes after review:

Remove excessive dependency
Move string value to const
Different handling for null and empty cases for confirmations
Use more human-friendly names

* Add http completion options, make GetToStream private

* Cleanup

* Add null checks, make StreamResponse disposable

* Refactor UrlGetToBinaryWithProgress into using UrlGetToStream
2020-04-02 17:01:55 +02:00
JustArchi
ff3ecad6d1 Add workaround for POST limit size 2020-02-24 21:11:54 +01:00
JustArchi
dbf740f560 Use more robust approach 2020-02-21 17:10:42 +01:00
JustArchi
a60c3d6376 Use HTTP/2 explicitly on .NET Core 2020-02-21 17:07:05 +01:00
Vitaliy
9a47f53398 Use HttpVersion.Version20 instead of creating Version instance (#1650) 2020-02-21 16:33:21 +01:00
JustArchi
0370168b02 Happy new year 2020-02-01 23:33:35 +01:00
JustArchi
067293eeb5 Start with .NET Core 3.0 code enhancements 2019-09-27 20:43:11 +02:00
JustArchi
fc23a426a2 Misc 2019-07-05 11:43:20 +02:00
JustArchi
d70e71dd68 Closes #1312 2019-07-05 11:39:19 +02:00
JustArchi
4faabe2429 Omit RFC for Steam compat 2019-06-19 16:42:04 +02:00
JustArchi
24732a6f61 Misc 2019-06-19 14:14:35 +02:00
JustArchi
0199654628 Decrease number of MaxConnections to 5
It's generally expected to have up to 5 open connections from a consumer to particular website.
2019-05-19 23:03:40 +02:00
JustArchi
b98268a465 R# cleanup, small code improvements 2019-05-19 15:38:06 +02:00
JustArchi
ab92065185 Misc 2019-04-10 19:24:42 +02:00
JustArchi
977b82ee2e Misc 2019-04-10 18:35:21 +02:00
JustArchi
d8afe989aa Misc 2019-04-05 16:44:31 +02:00