Rebol 编程/解析头
外观
< Rebol 编程
PARSE-HEADER parent data /multiple
返回一个包含头字段及其值的标题对象
PARSE-HEADER 是一个函数值。
- parent -- 默认标题对象 (类型: object none)
- data -- 要解析的字符串 (类型: any-string)
- /multiple -- 已过时。仅为了兼容性保留。
parse-header: func [ {Returns a header object with header fields and their values} parent [object! none!] "Default header object" data [any-string!] "String to parse" /multiple "Obsolete. Here for compatibility only." ][ clear invalid template: parent any [ parse/all data message net-error "Headers not correctly parsed" ] make either parent [parent] [object!] head-list ]