TCP described wrongly in the book?

⚓ Rust    📅 2025-11-10    👤 surdeus    👁️ 6      

surdeus

Hi Rust community,

This is my first post; I hope it is in the correct category.
I was reading the official Rust language book and (finally!) reached the last chapter, which implements a simple HTTP server using Rust.

I noticed that the following is written about TCP and HTTP in the first section:

The two main protocols involved in web servers are Hypertext Transfer Protocol (HTTP) and Transmission Control Protocol (TCP) . Both protocols are request-response protocols, meaning a client initiates requests and a server listens to the requests and provides a response to the client. The contents of those requests and responses are defined by the protocols.

Unlike HTTP, I think it is wrong to describe TCP as a request-response protocol. Maybe it is more appropriate in this context to describe it as a client-server protocol.

What do you think?

3 posts - 3 participants

Read full topic

🏷️ Rust_feed