header
Get the value of the header with the given name.
This function is only meant to be used on the server.
So it is only defined when the feature "ssr"
is enabled together with one of the
features "axum"
, "actix"
or "spin"
.
Example
use leptos_use::utils::header;
let content_len = header(http::header::CONTENT_LENGTH);
Feature
This function is only available if the crate feature
utils/header
is enabled