WebGate

Update of "Suspending Resource Handlers"
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview

Artifact ID: 7363cd72292f497a113aef6e63cdc6636e3eb88f
Page Name:Suspending Resource Handlers
Date: 2015-05-04 16:18:18
Original User: murphy
Parent: e9840852b5317f889b892aa025948a0cb8b10d08 (diff)
Content

Suspending Resource Handlers

  (send/suspend PROC) => PARAMETERS

This procedure captures the current continuation, assigns a URI to it, applies

  (PROC URI) => RESPONSE
to the URI and terminates the current resource handler returning the RESPONSE.

When a request is sent to the generated URI, the captured continuation is resumed and the original call to send/suspend returns the hash table of PARAMETERS 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.