h2 icon indicating copy to clipboard operation
h2 copied to clipboard

A way to determine the type of Error

Open zaharidichev opened this issue 5 years ago • 1 comments

Hi there, so it turns out that in some situation we can get an Error(Kind::User(UserError::HeaderTooBig)). This for example happens when the query param part of a URI is too long and makes the path pseudo header longer than it should be. The Error type however does not expose any public methods to determine the type of error unless its a protocol error (the Kind) enum is not public. Is there any way to get that information and act on the error?

zaharidichev avatar May 05 '20 17:05 zaharidichev

There isn't (yet) a public API to see that, no. We could design one!

seanmonstar avatar May 05 '20 20:05 seanmonstar