pub fn always<'a>(
request: &'a FatRequest,
host: &'a Host,
response_pipe: &'a mut ResponseBodyPipe,
bytes: Bytes,
addr: SocketAddr,
) -> RetFut<'a, ()>
Available on crate feature
push
only.Expand description
Always push all links on page.
ยงExamples
use kvarn_extensions::push::always;
extensions.add_post(
Box::new(always),
Id::new(-32, "HTTP/2 push"),
);