docs: fix route.fallback typo (#15173)
This commit is contained in:
parent
2a01d0c83c
commit
f43fe4855d
|
|
@ -117,7 +117,7 @@ If set changes the request HTTP headers. Header values will be converted to a st
|
||||||
## async method: Route.fallback
|
## async method: Route.fallback
|
||||||
|
|
||||||
When several routes match the given pattern, they run in the order opposite to their registration.
|
When several routes match the given pattern, they run in the order opposite to their registration.
|
||||||
That way the last registered route can always override all the previos ones. In the example below,
|
That way the last registered route can always override all the previous ones. In the example below,
|
||||||
request will be handled by the bottom-most handler first, then it'll fall back to the previous one and
|
request will be handled by the bottom-most handler first, then it'll fall back to the previous one and
|
||||||
in the end will be aborted by the first registered route.
|
in the end will be aborted by the first registered route.
|
||||||
|
|
||||||
|
|
|
||||||
2
packages/playwright-core/types/types.d.ts
vendored
2
packages/playwright-core/types/types.d.ts
vendored
|
|
@ -15287,7 +15287,7 @@ export interface Route {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When several routes match the given pattern, they run in the order opposite to their registration. That way the last
|
* When several routes match the given pattern, they run in the order opposite to their registration. That way the last
|
||||||
* registered route can always override all the previos ones. In the example below, request will be handled by the
|
* registered route can always override all the previous ones. In the example below, request will be handled by the
|
||||||
* bottom-most handler first, then it'll fall back to the previous one and in the end will be aborted by the first
|
* bottom-most handler first, then it'll fall back to the previous one and in the end will be aborted by the first
|
||||||
* registered route.
|
* registered route.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue