The transport layer provides reliable end-to-end communication between processes by sending and receiving raw bytes. It sits between application protocols such as HTTP and lower networking layers in the TCP/IP model. section 2.1
TCP is the transport-layer protocol used for the server and client implementation. It exchanges data as a continuous stream of bytes, without interpreting application message semantics such as HTTP requests. section 2.4
Basic TCP server and client
A Rust standard-library server and client exchange bytes over TCP. HTTP can operate above that connection, but message parsing and response construction belong to the application layer. section 2.4
Use the TCP/IP network model to locate the transport layer between the application layer and lower networking layers. section 2.1

