Skip to main content

response_bytes

Function response_bytes 

Source
pub fn response_bytes(
    pair: TransformPair,
    ctx: &TransformContext,
    body: &[u8],
) -> Result<Vec<u8>, TransformError>
Expand description

Convert a response body (upstream wire JSON → inbound wire JSON). The pair here is the REVERSE pair (resolve(upstream_key, inbound_key)).