Web Server: PLT HTTP Server

1`` | Running the Web Server
2`` | Scheme Servlets
3`` | Web Language Servlets
4`` | Configuration
5`` | Dispatchers
6`` | Web Config Unit
7`` | Web Server Unit
8`` | Continuation Managers
9`` | Internal
10`` | Troubleshooting
11`` | Acknowledgements
| Index

On this page:

send/ suspend/ url
send/ suspend/ hidden
embed-proc/ url
extract-proc/ url

Version: 4.0.2
contents index
← prev up next →

#### 3.4`` Web

(require web-server/lang/web)

"lang/web.ss" provides the most basic Web functionality.

(send/suspend/url response-generator) → request?
response-generator : (url? . -> . response?)

Captures the current continuation. Serializes it and stuffs it into a URL. Calls response-generator with this URL and delivers the response to the client. If the URL is invoked the request is returned to this continuation.

(send/suspend/hidden response-generator) → request?
response-generator : (url? xexpr? . -> . response?)

Captures the current continuation. Serializes it and generates an INPUT form that includes the serialization as a hidden form. Calls response-generator with this URL and form field and delivers the response to the client. If the URL is invoked with form data containing the hidden form, the request is returned to this continuation.

Note: The continuation is NOT stuffed.

(embed-proc/url k-url proc) → url?
k-url : url?
proc : (request? . -> . any/c)

Serializes and stuffs proc into k-url. For use with extract-proc/url.

(extract-proc/url req) → any/c
req : request?

Inspects the URL of req and attempts to extract the procedure embedded with embed-proc/url. If successful, it is invoked with req as an argument.

contents index
← prev up next →