3.5 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.)