Leptos-Use Guide

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

use leptos_use::utils::header;

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

Source

SourceDocs