summaryrefslogtreecommitdiff
path: root/tests/reqheader.ur
blob: d659935c989547d48d991a0716f4f714475e77b3 (plain)
1
2
3
4
5
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>