well the request is not the problem since your "input field" is the command line, the problem is the interactivity upwards.
so towards the client a classic stream would be nice. you can ofc just add a tcp shell stream to you client. if this is an academic project I would recommend building one if not just use one of the many existing solutions.
The main problem is ofc UX. The rest is just
"client > socket > stdin" and "stdout > socket > client"
and interactive stream however plus networking is a little bit more tricky: sync, buffering, positioning, commands, incomplete packages, network loss etc.