mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09:00

We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
12 lines
553 B
Text
12 lines
553 B
Text
#include <AK/URL.h>
|
|
|
|
endpoint WebSocketServer
|
|
{
|
|
// Connection API
|
|
connect(URL url, DeprecatedString origin, Vector<DeprecatedString> protocols, Vector<DeprecatedString> extensions, IPC::Dictionary additional_request_headers) => (i32 connection_id)
|
|
ready_state(i32 connection_id) => (u32 ready_state)
|
|
send(i32 connection_id, bool is_text, ByteBuffer data) =|
|
|
close(i32 connection_id, u16 code, DeprecatedString reason) =|
|
|
|
|
set_certificate(i32 connection_id, DeprecatedString certificate, DeprecatedString key) => (bool success)
|
|
}
|