Open Huy-Ngo opened 8 months ago
(Leaving this as draft because I haven't written tests and update the doc for this.)
Fixed up the tests. I see OAS tests failing, but that's not related. I want to add a test with cookies but response.cookies
doesn't seem to return a CookieJar
as documented but rather httpx.Cookie
, which is weird.
Not sure where to write doc though.
Previously, only status, headers, and content type are passed to the final rendered response. After this change, the LazyResponse is preserved and only has its body changed after rendering. This allows for, e.g., setting cookie for the LazyResponse.