async def healths(request):
r = HttpResponseRedirect("/")
r.headers["x-hello"] = "world"
return r
> curl -vvv http://127.0.0.1:8080/healths
* Trying 127.0.0.1:8080...
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> GET /healths HTTP/1.1
> Host: 127.0.0.1:8080
> User-Agent: curl/7.86.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 302 Found
< date: Thu, 09 Feb 2023 08:22:33 GMT
< server: uvicorn
< content-type: text/html; charset=utf-8
< location: /
< x-hello: world
< x-frame-options: DENY
< content-length: 0
< x-content-type-options: nosniff
< referrer-policy: same-origin
< cross-origin-opener-policy: same-origin
<
* Connection #0 to host 127.0.0.1 left intact