► |  | Web Server: HTTP Server

1 | Dispatching Server
2 | Dispatchers
3 | Launching Servers
4 | Web Servers
5 | Internal APIs
6 | Troubleshooting and Tips
| Index

▼ | 2 | Dispatchers

2.1 | General
2.2 | Mapping URLs to Paths
2.3 | Sequencing
2.4 | Timeouts
2.5 | Lifting Procedures
2.6 | Filtering Requests
2.7 | Procedure Invocation upon Request
2.8 | Logging
2.9 | Password Protection
2.10 | Virtual Hosts
2.11 | Serving Files
2.12 | Serving Servlets
2.13 | Statistics
2.14 | Limiting Requests

On this page:

make

top ← prev up next →

#### 2.7`` Procedure Invocation upon Request

(require web-server/dispatchers/dispatch-pathprocedure)
| package: web-server-lib

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.

> procedure (make path proc) → dispatcher/c
> 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.

top ← prev up next →