Skip to content
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

feat: add /sse endpoint to test Server-Sent Events #150

Closed
mccutchen opened this issue Nov 4, 2023 · 0 comments · Fixed by #160
Closed

feat: add /sse endpoint to test Server-Sent Events #150

mccutchen opened this issue Nov 4, 2023 · 0 comments · Fixed by #160

Comments

@mccutchen
Copy link
Owner

It's relatively easy to implement an endpoint that will use Server-Sent Events to stream a response to a client, and it's also relatively easy to write HTTP proxy code that does not correctly support SSE responses.

So, we should expose an endpoint in go-httpbin that makes it easier to test/validate that proxies correctly handle SSE.

mccutchen added a commit that referenced this issue Dec 12, 2023
Each event is a "ping" that includes an incrementing integer ID and an
integer Unix timestamp with millisecond resolution:

    event: ping
    data: {"id":9,"timestamp":1702417925258}

Fixes #150.
mccutchen added a commit that referenced this issue Dec 12, 2023
Each event is a "ping" that includes an incrementing integer ID and an
integer Unix timestamp with millisecond resolution:

    event: ping
    data: {"id":9,"timestamp":1702417925258}

Fixes #150.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant