chickadee » hyde » page-serve-handler


A procedure that is called for every request handled by hyde serve. It needs to accept the following arguments:

The requested page or #f if none was found for the requested path
The requested path represented as a list of strings
A thunk to be called in case no response was sent

The procedure should either send a response (e.g. via Spiffy's send-response procedure) or call the continue thunk. The default is serve-page.

Available since version 0.21.0.