django-ninja icon indicating copy to clipboard operation
django-ninja copied to clipboard

StreamingHttpResponse in Ninja

Open cameroon16 opened this issue 1 year ago • 2 comments

Core Django lets you incorporate a StreamingHttpResponse.

I see in the docs there's the ability in Ninja to handle other renderers. Is it possible to stream a response back using this functionality?

cameroon16 avatar Dec 14 '23 02:12 cameroon16

You can return a StreamingHttpResponse from a ninja api function.

OtherBarry avatar Dec 14 '23 02:12 OtherBarry

I think there is an example on how to do this here: https://github.com/vitalik/django-ninja/issues/919

ivan-sparq avatar Jan 04 '24 11:01 ivan-sparq