3.4 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? |
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.