A way to determine the type of Error
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.6k
- Forks
- 382
- Avg merge
- 20h 23m
- Merged PRs (30d)
- 9
Description
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?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the public Error type and the internal Kind::User(UserError::HeaderTooBig) case described in the issue. Determine what public error information callers need and how they would identify an oversized path pseudo-header; done should let callers distinguish this case without relying on the private Kind enum.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- networking
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100