put_page

Function put_page 

Source
pub async fn put_page<F: Future<Output = V>, V: View, B>(
    req: Request<B>,
    render_fn: impl FnOnce() -> F + Send + 'static,
) -> Response<Full<Bytes>>
where B: Body<Data = Bytes> + Send, B::Error: Error + Send + 'static,