Tinche / uapi

https://uapi.threeofwands.com
Apache License 2.0
90 stars 4 forks source link

Enable support for StreamingResponse #42

Closed bbezuk closed 1 year ago

bbezuk commented 1 year ago

When using aiohttp response

from aiohttp.web import StreamResponse as a response from handler it currently throws an error. Using regular response works as a workaround but it would be nice if I could use Streamresponse.

Also adding this as a supported feature for openapi generation would be useful. I assume all underlying frameworks have some kind of Streaming respose.

Tinche commented 1 year ago

Should be done on main!

Tinche commented 1 year ago

Well, changing the root aiohttp response type to StreamResponse at least.