matlab.net.http.field.MediaRangeField 类
命名空间: matlab.net.http.field
超类: matlab.net.http.HeaderField
HTTP Content-Type 和 Accept 标头字段的基类
描述
MediaRangeField
类是 Content-Type 和 Accept 标头字段的基类。MediaRangeField
对象中的字段包含以逗号分隔的字符串列表,由 MediaType
类解释。
属性
Name
— 标头字段的名称
字符串
标头字段名称,指定为字符串。
属性:
GetAccess | public |
SetAccess | public |
Value
— 标头字段的值
字符串
标头字段值,指定为字符串。
属性:
GetAccess | public |
SetAccess | public |
Dependent | true |
方法
公共方法
addFields | 向 HeaderField 数组中添加字段 |
removeFields | 从标头字段数组中删除字段 |
changeFields | 更改 HeaderField 数组中的现有值 |
replaceFields | 更改 HeaderField 数组中的值或向其中添加字段 |
getFields | 返回与名称或类匹配的标头字段 |
eq | 比较两个 HeaderField 数组 |
convertLike | 以与另一个标头字段类似的转换方式来转换标头字段的值 |
parse | 解析标头字段值并返回为字符串 |
displaySubclasses | 显示支持的 HeaderField 子类 |
专用于子类
convert | 将 |
专用运算符和函数
这些方法将标准的 MATLAB® 运算符和函数应用于此类中的对象。
isequal | 如果两个标头字段数组大小相同且对应元素相等,则为 |
string | 以字符串形式返回标头字段数组,如其在消息中所示。字段之间会插入换行符,但并非所有字段末尾都会有换行符。 |
char | 以字符向量形式返回标头字段数组,如 |
版本历史记录
在 R2016b 中推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)