Skip to main content

Module route

Module route 

Source
Expand description

Route โ€” network interception via the CDP Fetch domain.

Page::route(pattern, handler) enables request interception; the handler receives a Route and chooses to continue_, fulfill, or abort it.

Structsยง

Route
An intercepted network request, paused in the Fetch domain.
RouteContinueOptions
Options for Route::continue_ (optional request overrides).
RouteFetchOptions
Options for Route::fetch (optional overrides applied on top of the intercepted request).
RouteFetchResponse
A response returned by Route::fetch, capturing the full body so that accessors are cheap. Used to inspect (and optionally modify) the real response before fulfilling the route.
RouteFulfillOptions
Options for Route::fulfill (serve a synthetic response).