Skip to content

Commit 45ff3ab

Browse files
committed
expose allow submodule
1 parent b2e3059 commit 45ff3ab

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/server/allow.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! List the set of methods supported by a resource.
2+
13
use crate::headers::{HeaderName, HeaderValue, Headers, ToHeaderValues, ALLOW};
24
use crate::Method;
35

@@ -39,7 +41,7 @@ pub struct Allow {
3941
}
4042

4143
impl Allow {
42-
/// Create a new instance of `CacheControl`.
44+
/// Create a new instance of `Allow`.
4345
pub fn new() -> Self {
4446
Self {
4547
entries: HashSet::new(),
@@ -128,7 +130,7 @@ impl<'a> IntoIterator for &'a Allow {
128130
}
129131
}
130132

131-
/// A borrowing iterator over entries in `CacheControl`.
133+
/// A borrowing iterator over entries in `Allow`.
132134
#[derive(Debug)]
133135
pub struct IntoIter {
134136
inner: hash_set::IntoIter<Method>,
@@ -147,7 +149,7 @@ impl Iterator for IntoIter {
147149
}
148150
}
149151

150-
/// A lending iterator over entries in `CacheControl`.
152+
/// A lending iterator over entries in `Allow`.
151153
#[derive(Debug)]
152154
pub struct Iter<'a> {
153155
inner: hash_set::Iter<'a, Method>,

src/server/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! HTTP Server Context headers.
22
3-
mod allow;
3+
pub mod allow;
44

5+
#[doc(inline)]
56
pub use allow::Allow;

0 commit comments

Comments
 (0)