mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 07:33:20 +00:00
LibWebView: Add a command line flag to enable the HTTP disk cache
This adds a RequestServerOptions structure to hold this option and the only other RS option we currently have (certificates).
This commit is contained in:
parent
3516a2344f
commit
42eaea1043
Notes:
github-actions[bot]
2025-10-14 11:41:44 +00:00
Author: https://github.com/trflynn89
Commit: 42eaea1043
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6435
4 changed files with 26 additions and 3 deletions
|
@ -74,7 +74,6 @@ struct BrowserOptions {
|
|||
Optional<HeadlessMode> headless_mode;
|
||||
int window_width { 800 };
|
||||
int window_height { 600 };
|
||||
Vector<ByteString> certificates {};
|
||||
NewWindow new_window { NewWindow::No };
|
||||
ForceNewProcess force_new_process { ForceNewProcess::No };
|
||||
AllowPopups allow_popups { AllowPopups::No };
|
||||
|
@ -87,6 +86,16 @@ struct BrowserOptions {
|
|||
Optional<u16> devtools_port;
|
||||
};
|
||||
|
||||
enum class EnableHTTPDiskCache {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
|
||||
struct RequestServerOptions {
|
||||
Vector<ByteString> certificates;
|
||||
EnableHTTPDiskCache enable_http_disk_cache { EnableHTTPDiskCache::No };
|
||||
};
|
||||
|
||||
enum class IsLayoutTestMode {
|
||||
No,
|
||||
Yes,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue