包裹:matlab.net.http
HTTP消息的标题字段
使用Headerfield
class to implement a header field for an HTTP message. The class provides conversions between strings in the header and MATLAB®对象,阵列和结构。虽然您可以设置Headerfield
属性到任意值,HTTP标头字段对允许的字符具有约束。
这姓名
property defines the header field type. MATLAB provides subclasses for commonly used fields in thematlab.net.http.field
包裹。要查看支持子类的列表,请致电万博1manbetxheaderfield.displaysubclasses
方法。
这Headerfield
constructor creates fields of classHeaderfield
。创建在matlab.net.http.field
package, use the subclass constructor instead. For a list of subclasses, call theheaderfield.displaysubclasses
方法。
For example, thematlab.net.http.field.datefield
子类创建日期标题字段。如果您使用Headerfield
class to create a Date field, thedatefield
班级解释并执行该值,即使Headerfield
不是datefield
。同样,如果将字段值转换为MATLABdatetime
value, thedatefield。转变
使用方法。
如果是Headerfield
构造函数拒绝姓名
andValue
参数,使用通用菲尔德
class constructor instead.