mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibHTTP: Propagate and gracefully handle errors in Job
Most of these errors mean that we will fail the job, but it won't crash the application, at least.
This commit is contained in:
parent
3f614a8fca
commit
42a76b6c2d
Notes:
sideshowbarker
2024-07-17 19:43:14 +09:00
Author: https://github.com/sin-ack
Commit: 42a76b6c2d
Pull-request: https://github.com/SerenityOS/serenity/pull/12235
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/awesomekling
2 changed files with 118 additions and 33 deletions
|
@ -37,8 +37,8 @@ protected:
|
|||
void on_socket_connected();
|
||||
void flush_received_buffers();
|
||||
void register_on_ready_to_read(Function<void()>);
|
||||
String read_line(size_t);
|
||||
ByteBuffer receive(size_t);
|
||||
ErrorOr<String> read_line(size_t);
|
||||
ErrorOr<ByteBuffer> receive(size_t);
|
||||
void timer_event(Core::TimerEvent&) override;
|
||||
|
||||
enum class State {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue