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:
k-url?
response-generator?
url-transform?
expiration-handler?
embed/ url?
Version: 4.0.2

 

2.2 Contracts

 (require web-server/servlet/servlet-structs)

"servlet/servlet-structs.ss" provides a number of contracts for use in servlets.

k-url? : contract?

Equivalent to string?.

response-generator? : contract?

Equivalent to (-> k-url? response?).

url-transform? : contract?

Equivalent to (-> k-url? k-url?).

expiration-handler? : contract?

Equivalent to (or/c false/c (-> request? response?)).

embed/url? : contract?

Equivalent to (opt-> ((-> request? any/c)) (expiration-handler?) string?).