diff --git a/README.md b/README.md index f91e268..9b6a0b2 100644 --- a/README.md +++ b/README.md @@ -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`.