Mercurial > urweb
view 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 |
line wrap: on
line source
fun main () : transaction page = ua <- requestHeader "UserAgent"; case ua of None => return <xml>Not found</xml> | Some s => return <xml>UserAgent: {[s]}</xml>