@property
def connection(self) -> Optional[Connection]:
    'Return the established connection.\n\n        This will either return the connection or raise a\n        LocalProtocolError if the connection has not yet been\n        established.\n\n        :rtype: h11.Connection\n        '
    return self._connection
Return the established connection.

This will either return the connection or raise a
LocalProtocolError if the connection has not yet been
established.

:rtype: h11.Connection
@property
def connection(self) -> Optional[Connection]:
    'Return the established connection.\n\n        This will either return the connection or raise a\n        LocalProtocolError if the connection has not yet been\n        established.\n\n        :rtype: h11.Connection\n        '
    return self._connection