Skip to main content

format_http_date_bytes_maybe_now

Function format_http_date_bytes_maybe_now 

pub fn format_http_date_bytes_maybe_now(unix_secs: u64) -> Bytes
Available on crate features http and std only.
Expand description

format_http_date_bytes, sharing the bytes of format_http_date_now_bytes when unix_secs is the second those were last formatted for on this thread.

Never refreshes the shared bytes: only the clock does.