redirects, middleware, Transport, set/capture error status (#4751)

* wip: redirect

* redirect example

* fix file upload not in a form

* wip

* deny missing cfgs

* wip: add router fallback but it's not working

* fix suspense bug after rebuilds that queued work

* more cleanup

* add test for error codes

* add helpful comment

* bring back middleware annotation

* fix cfg

* add server feature

* fix doctest

* just disable liveview test for now

* fix liveview

* dont send init

* cache more playwright!

* add more pkgs to cache
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-10-10 21:43:57 -07:00
1 parent 8a81475ba8
commit 9243ef4128
35 files changed
+935 -800

No files matched your search

+17
View File
@@ -137,6 +137,7 @@ members = [
"packages/playwright-tests/cli-optimization",
"packages/playwright-tests/wasm-split-harness",
"packages/playwright-tests/default-features-disabled",
"packages/playwright-tests/fullstack-error-codes",
]
[workspace.package]
@@ -478,6 +479,7 @@ bytes = { workspace = true }
futures = { workspace = true }
axum-core = { workspace = true }
uuid = { workspace = true, features = ["v4", "serde"] }
tower-http = { workspace = true, features = ["timeout"] }
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
getrandom = { workspace = true, features = ["wasm_js"] }
@@ -697,6 +699,21 @@ name = "flat_router"
path = "examples/06-routing/flat_router.rs"
doc-scrape-examples = true
[[example]]
name = "middleware"
path = "examples/07-fullstack/middleware.rs"
doc-scrape-examples = true
[[example]]
name = "custom_error_page"
path = "examples/07-fullstack/custom_error_page.rs"
doc-scrape-examples = true
[[example]]
name = "redirect"
path = "examples/07-fullstack/redirect.rs"
doc-scrape-examples = true
[[example]]
name = "header_map"
path = "examples/07-fullstack/header_map.rs"