Creates a new reader.
The response to read the body from.
The id of the most recent event that carried an id: field.
Send this back as a HttpHeader.LastEventId header when reconnecting to let the server resume where it left off.
The reconnection interval in milliseconds most recently requested by the server via a retry: field if any.
Reads events until the stream ends.
Any event that is still incomplete when the stream ends is discarded.
Reads ServerSentEvents from the body of a
Responsein thetext/event-streamformat.