► |  | Web Server: PLT HTTP Server

1 | Running the Web Server
2 | Writing Servlets
3 | Extending the Web Server
4 | Troubleshooting and Tips
5 | Acknowledgements
| Index

► | 3 | Extending the Web Server

3.1 | Configuration
3.2 | Setting Up Servlets
3.3 | Dispatchers
3.4 | Web Config Unit
3.5 | Web Server Unit
3.6 | Internal

▼ | 3.6 | Internal

3.6.1 | Timers
3.6.2 | Connection Manager
3.6.3 | Dispatching Server
3.6.4 | Serializable Closures
3.6.5 | Cache Table
3.6.6 | MIME Types
3.6.7 | Serialization Utilities
3.6.8 | URL Param
3.6.9 | Miscellaneous Utilities

On this page:

insert-param
extract-param

Version: 4.1.4
top← prev up next →

##### 3.6.8`` URL Param

(require web-server/private/url-param)

The Web Server needs to encode information in URLs. If this data is stored in the query string, than it will be overridden by browsers that make GET requests to those URLs with more query data. So, it must be encoded in URL params. "private/url-param.ss" provides functions for helping with this process.

(insert-param u k v) → url?
u : url?
k : string?
v : string?

Associates k with v in the final URL param of u, overwritting any current binding for k.

(extract-param u k) → (or/c string? false/c)
u : url?
k : string?

Extracts the string associated with k in the final URL param of u, if there is one, returning #f otherwise.

top← prev up next →