matlab.net.http.io.MultipartProvider.getData - Next buffer of data to send in multipart HTTP request message - MATLAB (original) (raw)
Main Content
Class: matlab.net.http.io.MultipartProvider
Namespace: matlab.net.http.io
Next buffer of data to send in multipart HTTP request message
Syntax
[data,stop] = getData(provider,length)
Description
[[data](#d126e836068),[stop](#d126e836092)] = getData([provider](#d126e836020),[length](#d126e836041))
returns the next buffer of data. For each part of the multipart message, this method returns in successive buffers of data
: a boundary delimiter, headers for the part, and the data for the part. It obtains these by invoking methods in the current delegate, including the delegate's getData
method, and moves on to the next delegate when the current delegate indicates the end of its data by returning stop=true
.
When the last delegate is done, this method returns the final boundary delimiter and then sets stop=true
to indicate the end of the message.
This method is an overridden method of getData.
Input Arguments
Content provider, specified as amatlab.net.http.io.MultipartProvider
object.
Length of data that the provider should return, specified as double. For more information, see the length argument inContentProvider.getData
.
Output Arguments
Next buffer of data, returned as a uint8
vector or empty.
Indicate whether to end transmission, returned as a logical that the provider must set.
Attributes
Version History
Introduced in R2018a