annotate tests/reqheader.ur @ 456:1a4fa157fedd

Monoizing FFI transactions correctly
author Adam Chlipala <adamc@hcoop.net>
date Thu, 06 Nov 2008 09:21:34 -0500
parents
children 360cbc202756
rev   line source
adamc@456 1 fun main () : transaction page =
adamc@456 2 ua <- requestHeader "UserAgent";
adamc@456 3 case ua of
adamc@456 4 None => return <xml>Not found</xml>
adamc@456 5 | Some s => return <xml>UserAgent: {[s]}</xml>