Version: 4.1.3
3.1.4 Standard Responders
"configuration/responders.ss" provides some functions that help constructing HTTP responders.
These functions are used by the default dispatcher constructor (see Web Server Unit) to
turn the paths given in the configuration-table into responders for the associated circumstance.
Generates a response/full with the given http-code and short-version
as the corresponding fields; with the content of the text-file as the body; and, with
the headers as, you guessed it, headers.
Gives exn to the current-error-handler and response with a stack trace and a "Servlet didn’t load" message.
Returns a function that generates a standard "Servlet not found." error with content from file.
Gives exn to the current-error-handler and response with a stack trace and a "Servlet error" message.
Prints the exn to standard output and responds with a "Servlet error." message with content from file.
Returns a function that generates a standard "Servlet cache refreshed." message with content from file.
Returns a function that generates a standard "Passwords refreshed." message with content from file.
Returns a function that generates an authentication failure error with content from file and
header as the HTTP header.
Returns a function that generates a "Malformed request" error with content from file.
Returns a function that generates a standard "File not found" error with content from file.
Returns a function that generates a standard "Garbage collection run" message with content from file.