This may be more of an Axum question, but I can’t figure it out. I have a handler that, at the moment, returns impl IntoResponse; either (StatusCode, String) or Redirect.
I need to replace the Redirect with HxRedirect, but it doesn’t implement IntoResponse.
It’s not clear to me how to, like, return an empty response with the headers set via HxRedirect.
This may be more of an Axum question, but I can’t figure it out. I have a handler that, at the moment, returns
impl IntoResponse
; either(StatusCode, String)
orRedirect
.I need to replace the
Redirect
withHxRedirect
, but it doesn’t implementIntoResponse
.It’s not clear to me how to, like, return an empty response with the headers set via
HxRedirect
.