Creates a server reactor that optionally responds to requests.
Creates a server reactor that optionally responds to requests.
This reactor uses the function f
to create a response of type S
from the
request type T
. If the value obtained this way is not nil
, the server
responds.
Creates a server reactor.
Creates a server reactor.
This reactor always responds by mapping the request of type T
into a response
of type S
, with the specified function f
.