view tests/headers.ur @ 2262:34ad83d9b729

Fix recording bugs to do with nesting and buffer reallocation. Stop MonoFooify printing spurious errors.
author Ziv Scully <ziv@mit.edu>
date Wed, 07 Oct 2015 08:58:08 -0400
parents 2f5fd248588d
children
line wrap: on
line source
fun action () =
  setHeader (blessResponseHeader "Location") "http://www.google.com/";
  return <xml/>

fun main () =
  ag <- getHeader (blessRequestHeader "User-Agent");
  return <xml><body>
    User agent: {[ag]}

    <form> <submit action={action}/> </form>
  </body></xml>