HTTP server responders
Furnace framework ยป HTTP server

Next:HTTP request variables


Responders process requests and output HTTP responses. To implement a responder, define a new class and implement a method on the following generic word:
call-responder* ( path responder -- response )


The HTTP server dispatches requests to a main responder:
main-responder


The main responder may in turn dispatch it a subordinate dispatcher, and so on. To call a subordinate responder, use the following word:
call-responder ( path responder -- response )


A simple implementation of a responder which always outputs the same response:
trivial-responder

<trivial-responder> ( response -- trivial-responder )


Writing new responders by hand is rarely necessary, because in most cases it is easier to use furnace.actions instead.
Furnace actions