Interfaces to implement http socket server