WebGate

Artifact Content
Login

Artifact 7363cd72292f497a113aef6e63cdc6636e3eb88f:

Wiki page [Suspending Resource Handlers] by murphy 2015-05-04 16:18:18.
D 2015-05-04T16:18:18.255
L Suspending\sResource\sHandlers
P e9840852b5317f889b892aa025948a0cb8b10d08
U murphy
W 819
<h1>Suspending Resource Handlers</h1>

<verbatim>
  (send/suspend PROC) => PARAMETERS
</verbatim>

This procedure captures the current continuation, assigns a <tt>URI</tt> to it, applies
<verbatim>
  (PROC URI) => RESPONSE
</verbatim>
to the <tt>URI</tt> and terminates the current resource handler returning the <tt>RESPONSE</tt>.

When a request is sent to the generated <tt>URI</tt>, the captured continuation is resumed and the original call to <tt>send/suspend</tt> returns the hash table of <tt>PARAMETERS</tt> for the new request.

The default handling mechanism serializes the captured continuations and wraps them with authenticated encryption before stuffing them into the URL itself. Thus the server doesn't have to store the continuations persistently and the client cannot tamper with them.

Z e0398892229e85409d4202b05b27cdce