pub struct Route { /* private fields */ }Expand description
An intercepted network request, paused in the Fetch domain.
Implementations§
Source§impl Route
impl Route
Sourcepub async fn continue_(
&self,
options: Option<RouteContinueOptions>,
) -> Result<()>
pub async fn continue_( &self, options: Option<RouteContinueOptions>, ) -> Result<()>
Let the request proceed (optionally overriding url/method/headers/body).
Sourcepub async fn fallback(&self) -> Result<()>
pub async fn fallback(&self) -> Result<()>
Let the request proceed to the next matching route (no-op if only one).
Sourcepub async fn fulfill(&self, options: RouteFulfillOptions) -> Result<()>
pub async fn fulfill(&self, options: RouteFulfillOptions) -> Result<()>
Serve a synthetic response.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Route
impl !UnwindSafe for Route
impl Freeze for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnsafeUnpin for Route
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more