Function mz_environmentd::http::webhook::pack_rows

source ·
fn pack_rows(
    body: &[u8],
    body_format: &WebhookBodyFormat,
    headers: &BTreeMap<String, String>,
    header_tys: &WebhookHeaders
) -> Result<Vec<(Row, i64)>, AppendWebhookError>
Expand description

Packs the body and headers of a webhook request into as many rows as necessary.

TODO(parkmycar): Should we be consolidating the returned Rows here? Presumably something in storage would already be doing it, so no need to do it twice?