ftth_rsip/headers/untyped/
allow.rs

1use rsip_derives::{ToTypedHeader, UntypedHeader};
2
3/// The `Allow` header in its [untyped](super) form.
4#[derive(UntypedHeader, ToTypedHeader, Debug, PartialEq, Eq, Clone)]
5pub struct Allow(String);
6
7impl Default for Allow {
8    fn default() -> Self {
9        Self(
10            crate::common::Method::all()
11                .into_iter()
12                .map(|s| s.to_string())
13                .collect::<Vec<_>>()
14                .join(", "),
15        )
16    }
17}