comparison 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
comparison
equal deleted inserted replaced
455:d4a81273d4b1 456:1a4fa157fedd
1 fun main () : transaction page =
2 ua <- requestHeader "UserAgent";
3 case ua of
4 None => return <xml>Not found</xml>
5 | Some s => return <xml>UserAgent: {[s]}</xml>