def stream_response(
        self, method: str, path: str, **kwargs: dict[str, Any]
    ) -> Iterator[ServerSentEvent]:
        """Stream data from the server.

        Args:
            method: The HTTP method to use.
            path: The path to stream from.
            **kwargs: The keyword arguments to pass to the HTTP client.
        """
        url = self.base_url + path
        with connect_sse(self.client, method, url, **kwargs) as event_source:
            for sse in event_source.iter_sse():
                yield sse
Stream data from the server.

        Args:
            method: The HTTP method to use.
            path: The path to stream from.
            **kwargs: The keyword arguments to pass to the HTTP client.
        
lanarky/clients.py