There should be a method for request handling. This should take a request string, parse it and then handle it. Meaning ensure content is not malformed, the command exists and then pass it on to a delegate / data source with a received function that returns the expected return body which is then transformed into a response object.
There should be a method for request handling. This should take a
requeststring, parse it and then handle it. Meaning ensure content is not malformed, the command exists and then pass it on to a delegate / data source with areceivedfunction that returns the expected return body which is then transformed into aresponseobject.