mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-11 10:16:41 +00:00
21 lines
892 B
Plaintext
21 lines
892 B
Plaintext
#include <LibURL/URL.h>
|
|
|
|
endpoint RequestClient
|
|
{
|
|
request_started(i32 request_id, IPC::File fd) =|
|
|
request_progress(i32 request_id, Optional<u64> total_size, u64 downloaded_size) =|
|
|
request_finished(i32 request_id, bool success, u64 total_size) =|
|
|
headers_became_available(i32 request_id, HashMap<ByteString, ByteString, CaseInsensitiveStringTraits> response_headers, Optional<u32> status_code) =|
|
|
|
|
// Websocket API
|
|
// FIXME: See if this can be merged with the regular APIs
|
|
websocket_connected(i32 connection_id) =|
|
|
websocket_received(i32 connection_id, bool is_text, ByteBuffer data) =|
|
|
websocket_errored(i32 connection_id, i32 message) =|
|
|
websocket_closed(i32 connection_id, u16 code, ByteString reason, bool clean) =|
|
|
websocket_certificate_requested(i32 request_id) =|
|
|
|
|
// Certificate requests
|
|
certificate_requested(i32 request_id) =|
|
|
}
|