Skip to main content

format_http_date_now_bytes

Function format_http_date_now_bytes 

pub fn format_http_date_now_bytes() -> Bytes
Available on crate features http and std only.
Expand description

format_http_date_now as shared bytes, formatted once per second per thread.

Suits the Date of every response: callers within one second share one allocation.