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.
If the optional stop
predicate returns true
for some request, the reactor's
main channel gets sealed.
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
.
If the optional stop
predicate returns true
for some request, the reactor's
main channel gets sealed.