Everywhere: Hoist the Services folder to the top-level

This commit is contained in:
Timothy Flynn 2024-11-09 12:13:18 -05:00 committed by Andreas Kling
commit 22e0eeada2
Notes: github-actions[bot] 2024-11-10 11:52:06 +00:00
68 changed files with 41 additions and 41 deletions

View file

@ -0,0 +1,23 @@
#include <LibHTTP/HeaderMap.h>
#include <LibRequests/NetworkErrorEnum.h>
#include <LibURL/URL.h>
endpoint RequestClient
{
request_started(i32 request_id, IPC::File fd) =|
request_finished(i32 request_id, u64 total_size, Optional<Requests::NetworkError> network_error) =|
headers_became_available(i32 request_id, HTTP::HeaderMap response_headers, Optional<u32> status_code, Optional<String> reason_phrase) =|
// Websocket API
// FIXME: See if this can be merged with the regular APIs
websocket_connected(i64 websocket_id) =|
websocket_received(i64 websocket_id, bool is_text, ByteBuffer data) =|
websocket_errored(i64 websocket_id, i32 message) =|
websocket_closed(i64 websocket_id, u16 code, ByteString reason, bool clean) =|
websocket_ready_state_changed(i64 websocket_id, u32 ready_state) =|
websocket_subprotocol(i64 websocket_id, ByteString subprotocol) =|
websocket_certificate_requested(i64 websocket_id) =|
// Certificate requests
certificate_requested(i32 request_id) =|
}