pub fn to_event<'a, T: Headers<'a>>(
headers: &'a T,
body: Vec<u8>,
) -> Result<Event, Error>Available on crate features
http-binding or reqwest or axum or poem only.Expand description
Turn a pile of HTTP headers and a body into a CloudEvent