This commit is contained in:
2026-06-08 02:19:40 -04:00
parent e363d79bec
commit 7a645494f2

View File

@@ -103,9 +103,9 @@ Gets the browser's user agent string.
**Returns:** `string` on success, `false` on failure.
## `fplay.web_response_whitelist(sources)`
### `fplay.web_response_whitelist(sources)`
Outputs the response body for specific data sources. `sources` is an array that can contain: `main_frame`, `sub_frame`, `stylesheet`, `script`, `image`, `object`, `xmlhttprequest`, `ping`, `font`, `media`, `websocket`, `csp_report`, `imageset`, `web_manifest`, `speculative` and `other`
Outputs the raw body of incoming pages for `fplay.event.on("web_response", ...)`. `sources` defines what data sources will be returned: `main_frame`, `sub_frame`, `stylesheet`, `script`, `image`, `object`, `xmlhttprequest`, `ping`, `font`, `media`, `websocket`, `csp_report`, `imageset`, `web_manifest`, `speculative` and `other`
Default is `main_frame`, `xmlhttprequest`.