On this page:
top
up

2.8Procedure Invocation upon RequestπŸ”— i

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 pathproc)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
up

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /