changeFields
Class: matlab.net.http.HeaderField
Namespace: matlab.net.http
Change existing values in HeaderField array
Syntax
Description
fields = changeFields(
changes the existing fields in each header field with the specified names to the
indicated values and returns the updated array.fields
,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.
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.
Input Arguments
Version History
Introduced in R2018a