[ Version ( since = "0.2" ) ]
public virtual uint8[] flatten (Cancellable? cancellable = null) throws IOError
Flatten the request body in a buffer.
This function consumes the body stream. Any subsequent calls will yield an empty buffer.
If the 'Content-Length' header is set, a fixed-size buffer is used instead of dynamically resizing the buffer to fit the stream content.
buffer containing the stream data |