summaryrefslogtreecommitdiff
path: root/tests/reqheader.ur
blob: 8b69cc3a2780060ad3f8250dcdbe2066c1980cd5 (plain)
1
2
3
4
5
fun main () : transaction page =
    ua <- requestHeader "UserAgent";
    case ua of
        None => return <xml>Not found</xml>
      | Some s => return <xml>UserAgent: {[s]}</xml>