AnotherTest
3485613f4a
LibCore: Make IODevice::can_read_line() const
...
This also makes LibHTTP's Job::can_read_line() const, as IODevice was
keeping that from being const.
Fixes #2219
2020-05-15 09:50:48 +02:00
AnotherTest
155853afb2
LibHTTP: Unify and generalise response handling logic
2020-05-05 11:04:06 +02:00
Andreas Kling
7f41a1adda
LibHTTP: Put some debug spam behind an #ifdef
2020-05-03 19:14:50 +02:00
AnotherTest
b028a123b8
LibTLS: "Properly" handle the server dropping the connection
...
Contrary to popular belief, not every implementation of TLS follows the
specs.
Some of them just drop the connection without sending a proper
close_notify, and we should handle that gracefully.
2020-05-03 19:08:40 +02:00
AnotherTest
06cf9d3fb7
ProtocolServer: Implement and handle download progress
...
Also updates `pro` to display download progress and speed on stderr
2020-05-03 12:59:26 +02:00
AnotherTest
a63e8c4a03
LibHTTP: Trim received data to Content-Length
...
Apparently servers will feel free to pad their response if they send one
that contains a content-length field.
We should not assume that the entirety of the response is valid data.
2020-05-02 20:23:15 +02:00
AnotherTest
bb46e5f608
LibTLS: Switch to Hash::Manager for hashing and add SHA1
...
Now we can talk to google.com
2020-05-02 12:24:10 +02:00
AnotherTest
72d56b46b5
LibTLS: Make enough stuff work to have a demo run
...
...maybe, sometimes :^)
2020-05-02 12:24:10 +02:00
AnotherTest
7670e5ccf0
LibCore+LibHTTP: Move out the HTTP handler and add HTTPS
2020-05-02 12:24:10 +02:00