changeFields
Class: matlab.net.http.Message
Namespace: matlab.net.http
Change existing fields in message header
Syntax
Description
msg = changeFields(
changes the existing fields in each message to the names, values, and types specified in
msg
,fields
)fields
and returns the updated message. This syntax might change the
class of an existing field if the field name is a case-insensitive match to a name in
fields
.
This method throws an error when:
All the specified fields are not already in the header.
There is more than one field with the specified name.
msg = changeFields(
changes fields with the specified names to the indicated values.msg
,FieldName1,FieldValue1,...,FieldNameN,FieldValueN
)
Name matching is case-insensitive. However, if you specify a name that differs in case from the existing field name, then the field name changes to the specified name. This usage does not change the class of an existing field.
Input Arguments
Examples
Version History
Introduced in R2016b