Askemos Forum

redirecting the browser23. September 2004
Sometimes it's useful to redirect read requests, here is how.

A typical use of redirection would be to redirect read requests to a directory to the index.html page in the directory. That's what popular web servers usually do. To achieve that effect return this:

   <d:output d:xmlns="mind" d:location="
  (read-locator (msg 'location-format)
    `("index.html" . ,(msg 'location)))
">
    <d:copy-of select="(fetch "index.html")">
   </d:output>

Note that an attribute location is attached to the output element. The protocol adaptor will create the appropriate HTTP headers and code.

redirecting the browser23. September 2004
Sometimes it's useful to redirect read requests, here is how.
Intro - slides
Askemos Wiki
Publikationen