Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Rebol Programming/parse-header

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

USAGE: PARSE-HEADER parent data /multiple DESCRIPTION: Returns a header object with header fields and their values PARSE-HEADER is a function value. ARGUMENTS: parent -- Default header object (Type: object none) data -- String to parse (Type: any-string) REFINEMENTS: /multiple -- Obsolete. Here for compatibility only. SOURCE CODE 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 ]