view tests/reqheader.ur @ 1315:855c5adafc2d

New release
author Adam Chlipala <adam@chlipala.net>
date Tue, 02 Nov 2010 09:13:00 -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>