addFields
Class: matlab.net.http.Message
Namespace: matlab.net.http
Add fields to message header
Syntax
Description
msg = addFields(
adds msg
,fields
)fields
to the end of the header of each message and
returns the updated message.
addFields
does not check for duplicate fields, but the
RequestMessage
send
and complete
methods might reject
inappropriate duplicates.
To prevent the send
or complete
methods from
automatically adding a particular header field, call addFields
for
that field with an empty ([]
) Value
property.
Input Arguments
Examples
Version History
Introduced in R2016b