0

I want to extract response that is returned by starlette. I was expecting it to similar to request but it is not instead the response is hidden very deep inside Iterator --> frame --> protected_values --> _frame --> 0 --> "response body i want"

extracting like this doesn't seems correct is there any other solution to this.

dev
  • 732
  • 2
  • 8
  • 29
  • can't you just use `response.body`? https://github.com/encode/starlette/blob/master/starlette/responses.py#L54 or have you looked at middleware https://www.starlette.io/middleware/#basehttpmiddleware – Anentropic Sep 20 '22 at 15:19

0 Answers0