Closed arteymix closed 8 years ago
This feature provide flatten and flatten_async in Request to avoid the redundant and error-prone request body flattening.
flatten
flatten_async
Request
The correct way to accumulate an InputStream have many drawbacks:
InputStream
MemoryOutputStream
MemoyOutputStream
get_data
Flattening could also be used for parts in a multipart message (see #81)
This feature provide
flatten
andflatten_async
inRequest
to avoid the redundant and error-prone request body flattening.The correct way to accumulate an
InputStream
have many drawbacks:MemoryOutputStream
MemoyOutputStream
must be explicitly closed before callingget_data
MemoryOutputStream
Flattening could also be used for parts in a multipart message (see #81)