v.22.2Improvement

Added output format response to client as per HTTP protocol suggestions

Added sending of the output format back to client like it's done in HTTP protocol as suggested in #34362. Closes #34362. #34499 (Vitaly Baranov).
Added functionality to send the output format information back to the client similarly to the HTTP protocol.

Why it matters

This feature ensures that the client is informed about the output format used by ClickHouse, improving client-server communication and enabling better handling of query results on the client side.

How to use it

No explicit user action is required; the output format is now automatically sent back to the client as part of the response, consistent with the HTTP protocol behavior.