Function leptos_actix::render_app_to_stream_with_context

source ·
pub fn render_app_to_stream_with_context<IV>(
    options: LeptosOptions,
    additional_context: impl Fn() + 'static + Clone + Send,
    app_fn: impl Fn() -> IV + Clone + 'static,
    method: Method,
) -> Route
where IV: IntoView,
Expand description

Returns an Actix Route that listens for a GET request and tries to route it using leptos_router, serving an HTML stream of your application.

This function allows you to provide additional information to Leptos for your route. It could be used to pass in Path Info, Connection Info, or anything your heart desires.

§Provided Context Types

This function always provides context values including the following types: