next_part


Description:

[ Version ( since = "2.40" ) ]
public InputStream? next_part (Cancellable? cancellable = null) throws Error

Obtains an input stream for the next part.

When dealing with a multipart response the input stream needs to be wrapped in a MultipartInputStream and this function or its async counterpart need to be called to obtain the first part for reading.

After calling this function, get_headers can be used to obtain the headers for the first part. A read of 0 bytes indicates the end of the part; a new call to this function should be done at that point, to obtain the next part.

Parameters:

this

the MultipartInputStream

cancellable

a Cancellable

Returns:

a new InputStream, or null if there are no more parts