mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
RequestServer+LibProtocol: Add an 'EnsureConnection' IPC endpoint
This will allow LibWeb (and other components) to request a connection to be premade and cached, to make subsequent loads faster.
This commit is contained in:
parent
6b2e4f896b
commit
3ec39fc62e
Notes:
sideshowbarker
2024-07-18 03:22:13 +09:00
Author: https://github.com/alimpfard
Commit: 3ec39fc62e
Pull-request: https://github.com/SerenityOS/serenity/pull/10248
6 changed files with 54 additions and 0 deletions
|
@ -13,6 +13,15 @@
|
|||
#include <LibCore/Timer.h>
|
||||
#include <LibTLS/TLSv12.h>
|
||||
|
||||
namespace RequestServer {
|
||||
|
||||
enum class CacheLevel {
|
||||
ResolveOnly,
|
||||
CreateConnection,
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
namespace RequestServer::ConnectionCache {
|
||||
|
||||
template<typename Socket>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue