Main Content

complete

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

Complete HTTP header for JSONProvider

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 "application/json". If there is already a Content-Type field that does not contain a charset parameter, and this object's Charset property is different from the default for that Content-Type, then a charset parameter is added to the header field.

This method is an overridden method of complete.

Input Arguments

expand all

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

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

Attributes

Accessprotected

Version History

Introduced in R2018a