chickadee » hyde » page-serve-handler

page-serve-handlerparameter

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

page
The requested page or #f if none was found for the requested path
path
The requested path represented as a list of strings
continue
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.