Mercurial > urweb
view tests/reqheader.ur @ 1985:5195378deeca
Merge in upstream
author | Patrick Hurst <phurst@mit.edu> |
---|---|
date | Sat, 15 Feb 2014 01:04:31 -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>