Expand description
Methods to work with routes.
On the client (csr/hydrate) these helpers query the browser’s
window.location. On the server (ssr) they read from the per-request
impulse_ui_kit::ssr::RequestUrlCtx context populated by the SSR handler.
Functions§
- endpoint
- Get endpoint to your backend server.
- get_
host - Get server’s address and port.
- get_
path - Get path.
- get_
protocol - Get server protocol (HTTP/HTTPS: “http:”/“https:”).
- redirect
- Redirect to any URL.