Main Content

complete

Class: matlab.net.http.io.ImageProvider
Namespace: matlab.net.http.io

Complete HTTP header for ImageProvider

Syntax

complete(provider,URI)

Description

complete(provider,URI) completes the header of the message, or, in the case of a multipart message, the part for which this provider is being used. If there is no Content-Type field, then complete adds one specifying the MediaType derived from the arguments to the constructor. If there is a Content-Type field, then the method sets the MediaType. If the MediaType cannot be determined from either the Content-Type or the arguments, then the method tries to derive it from the suffix of the file name in the Content-Disposition field. If that algorithm does not work, then MediaType is set to "image/jpeg".

This method is an overridden method of complete.

Input Arguments

expand all

Content provider, specified as a matlab.net.http.io.ImageProvider object.

Uniform resource identifier, specified as a matlab.net.URI object.

Attributes

Accessprotected

Version History

Introduced in R2018a