Skip to content
Discussion options

You must be logged in to vote

Response.render method is called by Response.__init__, that is sync.

If you are concerned that your response being too large and that it may block the worker, consider using StreamingResponse (https://fastapi.tiangolo.com/advanced/custom-response/#streamingresponse)

Replies: 7 comments

This comment was marked as off-topic.

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by YuriiMotov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or problem question-migrate
5 participants
Converted from issue

This discussion was converted from issue #4795 on February 28, 2023 15:58.