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:

stuff-url
stuffed-url?
unstuff-url

Version: 4.0.2
contents index
← prev up next →

#### 3.5`` Stuff URL

(require web-server/lang/stuff-url)

"lang/stuff-url.ss" provides an interface for "stuffing" serializable values into URLs. Currently there is a particular hard-coded behavior, but we hope to make it more flexible in the future.

(stuff-url v u) → url?
v : serializable?
u : url?

Serializes v and computes the MD5 of the serialized representation. The serialization of v is written to "$HOME/.urls/M" where `M’ is the MD5. `M’ is then placed in u as a URL param.

(stuffed-url? u) → boolean?
u : url?

Checks if u appears to be produced by stuff-url.

(unstuff-url u) → serializable?
u : url?

Extracts the value previously serialized into u by stuff-url.

In the future, we will offer the facilities to:

- Optionally use the content-addressed storage.

- Use different hashing algorithms for the CAS.

- Encrypt the serialized value.

- Only use the CAS if the URL would be too long. (URLs may only be 1024 characters.)

contents index
← prev up next →