Not only to make maintenance easier but also to potentially enable WASM compilation what about using higher level HTTP and WebSocket abstractions like surf(I guess better for async-std environments?) or reqwest and for WS perhaps something like ws_stream_wasm at least for the client stuff?