Skip to main content

Module network

Module network 

Source
Expand description

QuickJS bindings for ferridriver::network::{Request, Response, WebSocket}.

Each wrapper is a thin pass-through to the core type per Rule 1. Method names mirror Playwright’s client/network.ts exactly so scripts use the same request.url(), response.body(), webSocket.waitForEvent() shapes as Playwright tests.

Structs§

RequestJs
ResponseJs
RouteJs
RouteRequestJs
Request returned by route.request() (Playwright parity) — a read-only snapshot of the intercepted request’s url / method / headers / postData / resourceType so handlers can route.request() .headers()['x-foo'] exactly like Playwright code does.
WebSocketJs