Remove Server.handleRequest()
and Server.parseRequest()
. Instead, new Server()
takes a Stream
and a StreamSink
and uses those behind-the-scenes for its communication.
Add Server.listen()
, which causes the server to begin listening to the underlying request stream.
Add Server.close()
, which closes the underlying request stream and response sink.
stack_trace
.RpcException
when not a map.