We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a169d6b + abfc164 commit e089cf0Copy full SHA for e089cf0
src/headers/header_values.rs
@@ -29,6 +29,12 @@ impl HeaderValues {
29
self.inner.get_mut(index)
30
}
31
32
+ /// Returns `true` if there is a value corresponding to the specified `HeaderValue` in the list,
33
+ /// `false` otherwise.
34
+ pub fn contains(&self, value: &HeaderValue) -> bool {
35
+ self.inner.contains(value)
36
+ }
37
+
38
/// Returns the last `HeaderValue`.
39
pub fn last(&self) -> &HeaderValue {
40
self.inner
0 commit comments