Main Content

removeParameter

Class: matlab.net.http.field.GenericField
Namespace: matlab.net.http.field

Remove parameter from field

Description

field = removeParameter(field,name) removes all instances of the named parameter and its value and returns the modified field. If the parameter does not exist, then removeParameter does nothing.

Input Arguments

expand all

Header field, specified as a matlab.net.http.field.GenericField object.

Parameter name, specified as a string or a character vector.

Name matching is not case-sensitive, but value is case-sensitive. If name matches an existing parameter, but with a different case, then the parameter name is changed to the case of the specified name. If there are multiple matching parameters, then all are removed.

Version History

Introduced in R2018a