Mercurial > urweb
view tests/goback.ur @ 1917:398298ca82b9
Add keepalive option to the http protocol
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Thu, 28 Nov 2013 11:06:11 -0500 |
parents | c3b5cf5c2f98 |
children |
line wrap: on
line source
table channels : { Channel : channel {} } fun get () = ch <- channel; dml (INSERT INTO channels (Channel) VALUES ({[ch]})); return <xml><body onload={recv ch}> Hi. </body></xml> fun post () = ch <- channel; dml (INSERT INTO channels (Channel) VALUES ({[ch]})); return <xml><body onload={recv ch}> Hi! </body></xml> fun main () = return <xml><body> <li><a link={get ()}>Get</a></li> <li><form><submit action={post}/></form></li> </body></xml>