Skip to content

http stream option - #2433

Open
zyxkad wants to merge 1 commit into
cc-tweaked:mc-1.20.xfrom
zyxkad:mc-1.20.x-http-stream
Open

http stream option#2433
zyxkad wants to merge 1 commit into
cc-tweaked:mc-1.20.xfrom
zyxkad:mc-1.20.x-http-stream

Conversation

@zyxkad

@zyxkad zyxkad commented May 5, 2026

Copy link
Copy Markdown
Contributor

close #1181

The APIs should be backward compatable after set stream = true.

An additional API is response.read([count, [blocking, ]]), where as when the blocking argument is explictly set to false, read method will not wait, it will just return immediately.

seek method is not available, and it is probably not a good idea to implement it on streamed connection consider it may require infinity amount of buffer.

After all, this PR is not well tested, we may need some test script for http API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Streaming HTTP responses

1 participant