Interface ServerSentEventResponse

    • Method Detail

      • isEventStream

        boolean isEventStream()
        Whether the response is actually an event stream.

        The server may have responded with some other type of content, or an error status code.

        If this method returns false, getEvents() will throw an exception when called. The non event-stream response body can be read via StreamedResponse.getBody().

        Returns:
        whether the response is actually an event stream