mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-23 00:59:22 -05:00
use_cookie feature docs more prominent
This commit is contained in:
parent
91071cf119
commit
e4c6901140
1 changed files with 2 additions and 2 deletions
|
@ -37,8 +37,8 @@ use cookie::Cookie;
|
||||||
/// This works equally well on the server or the client.
|
/// This works equally well on the server or the client.
|
||||||
/// On the server this function gets the cookie from the HTTP request header.
|
/// On the server this function gets the cookie from the HTTP request header.
|
||||||
///
|
///
|
||||||
/// If you're using `axum` you have to enable the `"axum"` feature in your Cargo.toml.
|
/// > If you're using `axum` you have to enable the `"axum"` feature in your Cargo.toml.
|
||||||
/// In case it's `actix-web` enable the feature `"actix"`.
|
/// > In case it's `actix-web` enable the feature `"actix"`.
|
||||||
pub fn use_cookie(cookie_name: &str) -> Option<Cookie<'static>> {
|
pub fn use_cookie(cookie_name: &str) -> Option<Cookie<'static>> {
|
||||||
let cookies;
|
let cookies;
|
||||||
#[cfg(feature = "ssr")]
|
#[cfg(feature = "ssr")]
|
||||||
|
|
Loading…
Add table
Reference in a new issue