h2
h2 copied to clipboard
A way to determine the type of Error
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?
There isn't (yet) a public API to see that, no. We could design one!