TheWaWaR / TheWaWaR/simple-http-server
[feature request] rewrite path
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 3.5k
- Forks
- 219
- PR merge metrics
- No merged PRs in 30d
Description
I love using it to mock web apps using HTML pages.
However I'd like to strip the .html extension in URL path.
E.g. instead of requesting /home.html to serve local ./home.html, I'd like to request /home.
I could achieve that with a simple path rewrite, e.g. a CLI option --path-rewrite with a regex.
simple-http-server --path-rewrite='s/*.html$//'
Contributor guide
No contributing guide indexed for this repository
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
The issue names no files or tests; start at the simple-http-server CLI entry point and trace how request paths map to local files. Clarify the rewrite syntax and matching behavior, then verify that requesting /home serves ./home.html while preserving the expected behavior for other paths.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- backend, cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100