view tests/reqheader.ur @ 996:6c5f79209db6

New release
author Adam Chlipala <adamc@hcoop.net>
date Fri, 09 Oct 2009 09:16:32 -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>