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:
make
Version: 4.0.2

 

5.7 Procedure Invocation upon Request

 (require web-server/dispatchers/dispatch-pathprocedure)

The web-server/dispatchers/dispatch-pathprocedure module defines a dispatcher constructor for invoking a particular procedure when a request is given to a particular URL path.

(make path proc)  dispatcher?

  path : string?

  proc : (request? . -> . response?)

Checks if the request URL path as a string is equal to path and if so, calls proc for a response.

This is used in the standard Web Server pipeline to provide a URL that refreshes the password file, servlet cache, etc.