Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust
Rust ai-agentsai-toolsbrowserbrowser-automationcloud-browserheadlessheadless-browserkitesurfplaywrightpuppeteerrustservoweb-crawlerweb-crawlingweb-scraperweb-scraping
use super::fetch::window_fetch_callback;
use crate::web_api_interfaces;
use moli_webapi_declare::WebApiFunctionTemplate;
#[derive(WebApiFunctionTemplate)]
#[webapi(interface = web_api_interfaces::Window, enumerable)]
struct WindowNetworkTemplateMethodsDeclaration {
#[webapi(method = "fetch", length = 1, callback = window_fetch_callback)]
fetch: (),
}
pub(crate) fn install_window_network_bindings<'s>(
scope: &mut v8::PinScope<'s, '_, ()>,
prototype: v8::Local<'s, v8::ObjectTemplate>,
) {
WindowNetworkTemplateMethodsDeclaration::initialize_prototype_template(scope, prototype);
}