matlab.net.http.io.GenericProvider Class
Namespace: matlab.net.http.io
Superclasses: matlab.net.http.io.ContentProvider
Generic ContentProvider for HTTP payloads
Description
Use a GenericProvider object to stream custom data generated by a function
instead of creating a ContentProvider subclass.
The matlab.net.http.io.GenericProvider class is a handle class.
Creation
Description
provider = GenericProvider(
constructs a getDataFcn)ContentProvider using function getDataFcn
to obtain buffers of data. This constructor sets the GetDataFcn
property to getDataFcn.
provider = GenericProvider(
adds a Content-Length field to the header of the message whose value is
getDataFcn,contentLength)contentLength. Use this syntax as an alternative to adding a
Content-Length field to the header directly. In this case, the length of the data returned
by getDataFcn, before stop=true is set, must
exactly equal this length.
provider = GenericProvider(
constructs a getDataFcn,contentLength,bufferSize)ContentProvider with additional options. If
contentLength is not empty, then the constructor sets the length of
the data. If bufferSize is not empty, then the constructor sets the
maximum size of the data buffer.
Input Arguments
Properties
Methods
More About
Version History
Introduced in R2018a
