def stop(self, error_code: int = QuicErrorCode.NO_ERROR) -> None:
        """
        Request the peer stop sending data on the QUIC stream.
        """
        self._stop_error_code = error_code
        self.stop_pending = True

        Request the peer stop sending data on the QUIC stream.
        
src/aioquic/quic/stream.py