mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-28 15:40:04 +00:00
cdp: add missing fields to Network.requestWillBeSent
This commit is contained in:
@@ -679,6 +679,19 @@ pub const Request = struct {
|
||||
xhr,
|
||||
script,
|
||||
fetch,
|
||||
|
||||
// Allowed Values: Document, Stylesheet, Image, Media, Font, Script,
|
||||
// TextTrack, XHR, Fetch, Prefetch, EventSource, WebSocket, Manifest,
|
||||
// SignedExchange, Ping, CSPViolationReport, Preflight, FedCM, Other
|
||||
// https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-ResourceType
|
||||
pub fn string(self: ResourceType) []const u8 {
|
||||
return switch (self) {
|
||||
.document => "Document",
|
||||
.xhr => "XHR",
|
||||
.script => "Script",
|
||||
.fetch => "Fetch",
|
||||
};
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user