summaryrefslogtreecommitdiffstats
path: root/src/http/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/mod.rs')
-rw-r--r--src/http/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/mod.rs b/src/http/mod.rs
index 60a1f2e..8a00745 100644
--- a/src/http/mod.rs
+++ b/src/http/mod.rs
@@ -28,10 +28,10 @@ impl Req {
pub(crate) fn form(&self) -> &[(String, String)] {
&self.form_pairs
}
- pub fn form_get(&self, key: &str) -> Option<String> {
+ pub(crate) fn form_get(&self, key: &str) -> Option<String> {
self.form_pairs.iter().find(|(k, _)| k == key).map(|(_, v)| v.clone())
}
- pub fn query_get(&self, key: &str) -> Option<String> {
+ pub(crate) fn query_get(&self, key: &str) -> Option<String> {
self.query_pairs.iter().find(|(k, _)| k == key).map(|(_, v)| v.clone())
}
/// Reading a cookie off a request is internal plumbing; the auth tests need it in order to forge one.