summaryrefslogtreecommitdiffstats
path: root/src/http
diff options
context:
space:
mode:
Diffstat (limited to 'src/http')
-rw-r--r--src/http/mod.rs4
-rw-r--r--src/http/render.rs2
2 files changed, 3 insertions, 3 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.
diff --git a/src/http/render.rs b/src/http/render.rs
index d513c2a..6e1083b 100644
--- a/src/http/render.rs
+++ b/src/http/render.rs
@@ -60,7 +60,7 @@ impl Page {
gated: false,
}
}
- pub fn flash(mut self, msg: String, err: bool) -> Self {
+ pub(crate) fn flash(mut self, msg: String, err: bool) -> Self {
self.flash = msg;
self.has_flash = true;
self.flash_err = err;