servo / servo/rust-url

feature: expose pathname publicly

Open
#833 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
1.6k
Forks
406
PR merge metrics
No merged PRs in 30d

Description

Hi! I enjoy this package, thank you for making it.

I would like to construct a pathname then pass it into the URL.

I see that PathSegmentsMut is available but looks like it's purposefully not exposed.
Was there a reason for that?

Just like we can join paths in the standard PathBuf, I would like to see something similar here for urls.

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 reviewing the existing PathSegmentsMut type and the URL API to understand why pathname construction is not publicly exposed. Compare the requested behavior with PathBuf joining and determine the public API shape that would let a constructed pathname be passed into a URL; the issue is complete when that behavior is defined and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.