Skip to content

Commit 2f639a0

Browse files
committed
Add path rewriting support
1 parent 4f24458 commit 2f639a0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
22

33
name = "conduit-test"
4-
version = "0.9.0-alpha.2"
4+
version = "0.9.0-alpha.3"
55
authors = ["[email protected]",
66
"Alex Crichton <[email protected]>"]
77
description = "Testing utilities for conduit-based stacks"
88
repository = "https://github.com/conduit-rust/conduit-test"
99
license = "MIT"
1010

1111
[dependencies]
12-
conduit = "0.9.0-alpha.2"
12+
conduit = "0.9.0-alpha.3"

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ impl conduit::RequestExt for MockRequest {
117117
&self.path
118118
}
119119

120+
fn path_mut(&mut self) -> &mut String {
121+
&mut self.path
122+
}
123+
120124
fn query_string(&self) -> Option<&str> {
121125
self.query_string.as_ref().map(|s| &s[..])
122126
}

0 commit comments

Comments
 (0)