Mercurial > urweb
view tests/reqheader.ur @ 1699:3320eba6bad5
Clarify necessity of 'effectful' in the manual
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Tue, 13 Mar 2012 13:36:26 -0400 |
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>