Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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" or "actix".

Example

#![allow(unused)]
fn main() {
use leptos_use::utils::header;

let content_len = header(http::header::CONTENT_LENGTH);
}

Source

Source • Docs