Implements a router in the HTTP thread, one message per call.