eof_received is an asyncio protocol callback that marks the end of incoming data. For a socket, it runs when the server closes the connection; afterward, data_received will not run again. section 8.2
Use its return value to choose transport shutdown behavior:
- Return False to let the transport close itself. section 8.2
- Return True when the protocol implementation will perform shutdown logic. section 8.2
Completing an HTTP response
A protocol can accumulate chunks from data_received, then set an internal Future's result in eof_received. A get_response coroutine awaits that Future, allowing callers to receive the completed response after the connection ends. section 8.2
