#[non_exhaustive]pub enum HeaderPolicy {
Ignore,
Refuse,
}Expand description
Part headers other than Content-Disposition, Content-Type, and
Content-Transfer-Encoding.
§Examples
use form_net::{HeaderPolicy, Policy};
assert_eq!(Policy::DEFAULT.unknown_headers, HeaderPolicy::Ignore);Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ignore
Skip them, as RFC 7578 section 4.8 requires (default). They still count toward the header budgets.
Refuse
Refuse them.
Trait Implementations§
Source§impl Clone for HeaderPolicy
impl Clone for HeaderPolicy
impl Copy for HeaderPolicy
Source§impl Debug for HeaderPolicy
impl Debug for HeaderPolicy
impl Eq for HeaderPolicy
Source§impl PartialEq for HeaderPolicy
impl PartialEq for HeaderPolicy
impl StructuralPartialEq for HeaderPolicy
Auto Trait Implementations§
impl Freeze for HeaderPolicy
impl RefUnwindSafe for HeaderPolicy
impl Send for HeaderPolicy
impl Sync for HeaderPolicy
impl Unpin for HeaderPolicy
impl UnsafeUnpin for HeaderPolicy
impl UnwindSafe for HeaderPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more