Oberon || Library || Module Index || Search Engine || Definition || Module


Ulm's Oberon Library:
HTTPHeaders


NAME

HTTPHeaders - manage HTTP-header fields

SYNOPSIS

TYPE HeaderSet = POINTER TO HeaderSetRec;
TYPE HeaderSetRec =
   RECORD
      (Disciplines.ObjectRec)
   END;


PROCEDURE CreateSet(VAR headerSet: HeaderSet); PROCEDURE Add(headerSet: HeaderSet; name: Streams.Stream; value: Streams.Stream; begin, end: Streams.Count); PROCEDURE Get(headerSet: HeaderSet; name: ARRAY OF CHAR; VAR value: Streams.Stream);

DESCRIPTION

Manages HTTP-header fields in a set.

CreateSet creates a new set for HTTP-headers.

Add adds another header (name and value) to the set. If the specified name is already in the set value will be combined with the existing value (separated by a comma). begin and end determine the taken interval of value (including begin, but excluding end).

Get provides the field-value to a field-name. value will be NIL if there is no such name.

SEE ALSO

Streams
stream operations

AUTHOR

Manfred Rueß, University of Ulm

BUGS

Combining values is only possible if the field-value is a list but this will not be checked. So if there are two date-headers, they will be combined which is obviously wrong.
Edited by: borchert, last change: 1998/04/24, revision: 1.1, converted to HTML: 1998/04/24

Oberon || Library || Module Index || Search Engine || Definition || Module