Package: matlab.net.http.io
Superclasses: handle
, matlab.mixin.Heterogeneous
Consumer for HTTP message payloads
A ContentConsumer is an object that converts or processes data
received in an HTTP ResponseMessage
object. MATLAB® calls the consumer repeatedly during receipt of a response message to process
buffers of the payload as it is being received. You can act on or display this streamed data
while it is being received. You also can abort the transfer before receiving the entire
message. Using a consumer can improve latency (the delay between
receiving an instruction and the beginning of the transfer of data) when the time to process
the data is comparable to the speed of the network. It also allows you to receive unbounded
streamed response messages.
ContentConsumer
is an abstract class. To process incoming data received in
an HTTP response message, use one of the ContentConsumer
subclasses:
You also can write you own subclass of the ContentConsumer
class or extend
one of the subclasses.
The matlab.net.http.io.ContentConsumer
class is a handle
class.
BinaryConsumer
| ContentLengthField
| ContentProvider
| ContentTypeField
| FileConsumer
| GenericConsumer
| HeaderField
| ImageConsumer
| JSONConsumer
| matlab.net.URI
| MediaType
| MultipartConsumer
| RequestMessage
| ResponseMessage
| StringConsumer