hyperium / hyperium/http

Uri's Debug implementation should show components

Open
#423 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
1.4k
Forks
378
Avg merge
1d 21h
Merged PRs (30d)
5

Description

Right now Uri's implementation of the Debug trait calls out to its Display implementation. This makes it hard to use the Debug trait to check what has been parsed into the various fields of the Uri, because those fields get concatenated together by the Display trait.

I think a #[derive(Debug)] would do the job nicely. Is there some history I'm missing about why the Debug method calls out to Display?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the Uri implementation in uri/mod.rs, especially the Debug and Display implementations referenced by the issue. Check existing Uri tests, then verify that Debug exposes the parsed components rather than the concatenated Display form.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend-api-design
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.