Mercurial > urweb
view tests/reqheader.ur @ 594:55829473f6a7
Injected an option
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Fri, 02 Jan 2009 13:03:22 -0500 |
parents | 360cbc202756 |
children |
line wrap: on
line source
fun main () : transaction page = ua <- requestHeader "User-Agent"; case ua of None => return <xml>Not found</xml> | Some s => return <xml>User-Agent: {[s]}</xml>