view tests/echoBlob.ur @ 854:158d980889ac

Further refactoring of request.c to work with CGI
author Adam Chlipala <adamc@hcoop.net>
date Tue, 23 Jun 2009 15:40:35 -0400
parents f7e2026dd5ae
children
line wrap: on
line source
fun echo r = returnBlob (fileData r.Data) (blessMime (fileMimeType r.Data))

fun main () = return <xml><body>
  <form>
    <upload{#Data}/>
    <submit action={echo}/>
  </form>
</body></xml>