view tests/reqheader.ur @ 1874:11d8e220f36f

Add xhead type
author Sergey Mironov <grrwlf@gmail.com>
date Mon, 07 Oct 2013 14:07:31 +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>