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


Ulm's Oberon Library:
Convert


NAME

Convert - HTTP converting tools

SYNOPSIS

TYPE DateStr = ARRAY 34 OF CHAR; (* max. length of all possible dates *)


PROCEDURE ToHTTPDate(date: Times.Time; VAR httpDate: DateStr); PROCEDURE FromHTTPDate(httpDate: Streams.Stream; date: Times.Time): BOOLEAN; PROCEDURE Base64Decode(in: Streams.Stream; VAR out: ARRAY OF CHAR): BOOLEAN;

DESCRIPTION

The procedures of Convert simplifies converting HTTP structures and Oberon structures.

ToHTTPDate converts an oberon time stamp into a string with a valid date (RFC1123) for the HTTP-protocol. FromHTTPDate does it vice versa. Every allowed version of a HTTP-date is recognized. FromHTTPDate returns FALSE if httpDate is not a valid HTTP-date.

Base64Decode transforms abase-64-encoded Stream to normal ASCII-code. It will return FALSE, if out isn't large enough.

AUTHOR

Manfred Ruess, University of Ulm

SEE ALSO

Streams
stream operations
Times
time stamps

BUGS


Edited by: , last change: , revision: , converted to HTML: 1998/01/17

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