Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add unit tests for stream handlers and Stream::is_readable() #2075

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

falbrechtskirchinger
Copy link
Contributor

Add complementary stream_handler callback to response. If set, it
replaces all other content-serving mechanisms. No content-, or
range-related headers are added.

This provides a minimal interface to implement a WebSocket server.
Introduce a new request callback, stream_handler. If set, it replaces
all other content-serving mechanisms. The handler is not called in
response to HEAD or CONNECT requests, or when following a redirect.
Content-related default header fields are not added to the request.

In conjunction with a response handler, it provides a minimal interface
to implement a WebSocket client.
@falbrechtskirchinger falbrechtskirchinger marked this pull request as ready for review February 21, 2025 06:37
@falbrechtskirchinger
Copy link
Contributor Author

I fixed the test failure on Windows. It needs a rebase if/when the two stream handler PRs are merged, but otherwise, it's done.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant