view tests/reqheader.ur @ 660:9abeb533f6a7

Describe AJAX RPC structure
author Adam Chlipala <adamc@hcoop.net>
date Thu, 12 Mar 2009 12:18:11 -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>