miko-core 0.3.13

Core for miko
Documentation
1
2
3
4
5
6
7
8
9
use bytes::Bytes;
use http_body_util::combinators::BoxBody;
use http_body_util::{BodyExt, Full};
use std::convert::Infallible;

/// Helper function to create an empty boxed body
pub fn box_empty_body() -> BoxBody<Bytes, Infallible> {
    Full::new(Bytes::new()).boxed()
}