Skip to content
This repository was archived by the owner on Aug 24, 2022. It is now read-only.

Large (streaming) response support #41

Open
RickMoynihan opened this issue Mar 17, 2015 · 1 comment
Open

Large (streaming) response support #41

RickMoynihan opened this issue Mar 17, 2015 · 1 comment

Comments

@RickMoynihan
Copy link

Hi I'm not sure if this is supported or not, but as far as I can tell this middleware doesn't support (memory) efficient serialisation of large responses.

From looking at the code it seems that objects are fully converted into in memory strings before being returned to the web server. Is this a fair assessment?

Would it be possible to support streaming responses with this middleware?

Perhaps by allowing certain handlers to return a piped-input-stream instead of a String?

@Deraen
Copy link
Collaborator

Deraen commented Aug 10, 2015

Yes this sounds like a good idea.

I'm currently working on a major refactoring and after that is completed I'm thinking I'll take a look into this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants