How can I determine whether or not ResponseBodyTimeoutLayer timed out? #536
Unanswered
mherrerarendon
asked this question in
Q&A
Replies: 1 comment
-
This may not be all that helpful, but note that the status code is already sent by the time the body timeout happens. That's why it's unchanged. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I'm building an application using axum and I was hoping to use
ResponseBodyTimeoutLayer
.I tried something like the following
which does timeout the body, but my response status code is unchanged. I'm trying to figure out how to handle the body timeout (change status, etc), but I'm not having any luck.
Any help is appreciated, thanks in advance!
tower-http version
0.6.1
Beta Was this translation helpful? Give feedback.
All reactions