You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should this be handled automatically by accept, or is this the job of the user? If the latter, then what is the advantage of the StatusCode requirement for errors?
The text was updated successfully, but these errors were encountered:
An
Error
always has an associatedStatusCode
. From this, I assumed that errors are converted into HTTP responses when using theaccept
function.However, that does not seem to be the case. The errors are just propagated, which results in a connection closing without a response:
async-h1/src/server/mod.rs
Line 75 in 5606a9d
Should this be handled automatically by
accept
, or is this the job of the user? If the latter, then what is the advantage of theStatusCode
requirement for errors?The text was updated successfully, but these errors were encountered: