diff --git a/integrations/axum/src/lib.rs b/integrations/axum/src/lib.rs index 3a888d5406..57e69e186b 100644 --- a/integrations/axum/src/lib.rs +++ b/integrations/axum/src/lib.rs @@ -79,7 +79,14 @@ impl ResponseParts { } /// Allows you to override details of the HTTP response like the status code and add Headers/Cookies. -/// ResponseOptions is stored in your server's context if you've called `.leptos_routes` on your router. +/// +/// `ResponseOptions` is provided via context when you use most of the handlers provided in this +/// crate, including [`.leptos_routes`](LeptosRoutes::leptos_routes), +/// [`.leptos_routes_with_context`](LeptosRoutes::leptos_routes_with_context), [`handle_server_fns`], etc. +/// You can find the full set of provided context types in each handler function. +/// +/// If you provide your own handler, you will need to provide `ResponseOptions` via context +/// yourself if you want to access it via context. /// ```rust /// #[server] /// pub async fn get_opts() -> Result<(),ServerFnError> {