Skip to content

Commit

Permalink
add some detail and format links
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj committed Mar 1, 2024
1 parent ef4c628 commit 7fd1503
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion integrations/axum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit 7fd1503

Please sign in to comment.