-
Notifications
You must be signed in to change notification settings - Fork 17
feat: Report event source headers on open. #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| /// Occurs when the connection to the EventSource API has been opened. | ||
| /// </summary> | ||
| public event EventHandler<EventArgs> ConnectionOpened; | ||
| public event EventHandler<EventSourceOpenedEventArgs> ConnectionOpened; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The EventSource service is internal, so there isn't any external impact from this change.
| /// A collection of header values when the ReadyState is Open, or null. | ||
| /// </value> | ||
| /// </summary> | ||
| public IEnumerable<KeyValuePair<string,IEnumerable<string>>> Headers { get; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the public facing change.
| /// <param name="readyState">One of the <see cref="EventSource.ReadyState"/> values, which represents the state of the EventSource connection.</param> | ||
| public StateChangedEventArgs(ReadyState readyState) | ||
| /// <param name="headers">Response headers when the <see cref="StateChangedEventArgs.ReadyState"/> is <see cref="ReadyState.Open"/>. Otherwise null.</param> | ||
| public StateChangedEventArgs(ReadyState readyState, IEnumerable<KeyValuePair<string,IEnumerable<string>>> headers = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This constructor is public, but isn't something someone would really need to use in normal operation.
Likely it should have been internal.
🤖 I have created a release *beep* *boop* --- ## [5.2.0](5.1.0...5.2.0) (2025-02-24) ### Features * Report event source headers on open. ([#104](#104)) ([e2cba63](e2cba63)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
No description provided.