Function cloudevents::binding::http::to_event

source ·
pub fn to_event<'a, T: Headers<'a>>(
    headers: &'a T,
    body: Vec<u8>
) -> Result<Event, Error>
Available on crate features http-binding or actix or warp or reqwest or axum or poem only.
Expand description

Turn a pile of HTTP headers and a body into a CloudEvent