Skip to content

Commit ed446df

Browse files
committed
http: remove .path() impl
1 parent 64d2856 commit ed446df

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/http.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -196,17 +196,6 @@ impl IncomingHttpRequest {
196196
http::Method::from_bytes(self.method.as_bytes())
197197
.map_err(|e| anyhow::anyhow!("couldn't parse method: {:?}", e))
198198
}
199-
200-
pub fn path(&self) -> anyhow::Result<String> {
201-
let url = url::Url::parse(&self.raw_path)?;
202-
// skip the first path segment, which is the process ID.
203-
Ok(url
204-
.path_segments()
205-
.ok_or(anyhow::anyhow!("url path missing process ID!"))?
206-
.skip(1)
207-
.collect::<Vec<&str>>()
208-
.join("/"))
209-
}
210199
}
211200

212201
/// Request type that can be shared over WASM boundary to apps.

0 commit comments

Comments
 (0)