The disfluid server consists of a set of endpoints that handle requests. The (webid-oidc server endpoint) module defines the base building blocks.
All endpoints define a host for which they are relevant, and an absolute path. If a request comes with a matching host and a matching path prefix, then it will be handled by this endpoint.
If host is
#f, then this endpoint will be used for all
You can construct an endpoint with the
#:path keyword arguments: the former is a string
#f), and the latter is a string starting with
"/" (defaults to
Handle request with endpoint.
request is the request, in the form of an object from
(web request). request-body is
#f, a string or a
Return 3 values: a response, a response body (a string, bytevector,
input port, or
#f if no body is expected), and some response
Return the host name endpoint is configured to respond to.
Return the path prefix endpoint is configured to respond to.
Check if endpoint is configured to respond to request.
The handler may throw exceptions to signal errors. Exception messages will be printed to the log file, and user messages will be passed to the user.
|• Error signalling|
|• Router endpoint|
|• Request authentication|
|• Hello world|
|• Reverse proxy|
|• Client pages|
|• Identity provider|
|• Resource server|