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

+1 -15
View File
@@ -1,7 +1,7 @@
use axum::body::Body;
use axum::handler::Handler;
use axum::routing::MethodRouter;
use axum::Router; // both req/res // both req/res // req only
use axum::Router;
use dashmap::DashMap;
use dioxus_fullstack_core::DioxusServerState;
use http::Method;
@@ -111,20 +111,6 @@ impl ServerFunction {
// .map(|v| v.contains("text/html"))
// .unwrap_or(false);
// let mthd: MethodRouter<()> = axum::routing::get(self.handler);
// // this is taken from server_fn source...
// //
// // [`server_fn::axum::get_server_fn_service`]
// let mut service = {
// let middleware = self.middleware();
// let mut service = self.clone().boxed();
// for middleware in middleware {
// service = middleware.layer(service);
// }
// service
// };
// actually run the server fn (which may use the server context)
// let fut = crate::with_server_context(server_context.clone(), || service.run(req));
// let fut = crate::with_server_context(server_context.clone(), || service.run(req));