You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current the incoming request to the server and the response spit by the server is written to the output buffer within the start function which looks a bit ugly at the moment and also I don't believe the function would be extendable.
So an ideal API design would be to have:
request, response = server.start().
Thus the returned request and response could be used to print out to the output buffer or any additional tasks could be performed.
Note, we need to return the request and response without interfering with the socket listening for any other clients that try to connect with the server.
The text was updated successfully, but these errors were encountered:
Current the incoming request to the server and the response spit by the server is written to the output buffer within the start function which looks a bit ugly at the moment and also I don't believe the function would be extendable.
So an ideal API design would be to have:
request, response = server.start().
Thus the returned request and response could be used to print out to the output buffer or any additional tasks could be performed.
Note, we need to return the request and response without interfering with the socket listening for any other clients that try to connect with the server.
The text was updated successfully, but these errors were encountered: