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

Streaming support #208

Closed
alexsv opened this issue Dec 22, 2016 · 6 comments
Closed

Streaming support #208

alexsv opened this issue Dec 22, 2016 · 6 comments
Milestone

Comments

@alexsv
Copy link

alexsv commented Dec 22, 2016

Hi,
I'm impressed by the framework, but want to check one thing:
I want to read big file and send a portions of it like 1KB by 1 second

So I expect, that HTTPResponse would accept some iterator.
Any ideas about this?

@seemethere
Copy link
Member

You could implement a custom protocol based on the base sanic HTTPProtocol.

Closed with #209

@seemethere seemethere added this to the 0.2.0 milestone Jan 3, 2017
@alexsv
Copy link
Author

alexsv commented Jan 3, 2017

Am I right custom protocol is used for the whole application and I can't make one endpoint streaming based?

@seemethere
Copy link
Member

@alexsv that would be correct. But I would think that there could be a better implementation out there that would not require changing the entire protocol just to enable it for one endpoint.

@alexsv
Copy link
Author

alexsv commented Jan 3, 2017

possible on blueprint level?

@seemethere
Copy link
Member

Possibly but it would need to be investigated.

@38elements
Copy link
Contributor

This is related #697.

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

No branches or pull requests

3 participants