Skip to main content

transform_request

Function transform_request 

Source
pub fn transform_request(
    src_operation: OperationFamily,
    src_protocol: ProtocolKind,
    dst_operation: OperationFamily,
    dst_protocol: ProtocolKind,
    model: Option<&str>,
    query: Option<&str>,
    body: Vec<u8>,
) -> Result<(Option<String>, Vec<u8>), TransformError>
Expand description

Transform a request body from one (operation, protocol) to another.

This dispatches to the appropriate TryFrom implementation in crate::transform.