Function fdk::body_as_bytes
[−]
[src]
pub fn body_as_bytes(b: Body) -> Result<Vec<u8>, FunctionError>
A utility function that consumes the body of a request or response and returns it as a vector of bytes. Note: this consumes and buffers the stream.