view tests/reqheader.ur @ 1350:a6d421812b93

Fix manual discussion of tuple syntax
author Adam Chlipala <adam@chlipala.net>
date Mon, 20 Dec 2010 08:48:20 -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>