Header

Type Alias Header 

Source
pub type Header = (&'static str, String);
Expand description

Header trait

Allows custom headers to be added to the response

ยงExamples

use helmet_core::Header;

struct MyHeader;

impl Into<Header> for MyHeader {
    fn into(self) -> Header {
        ("My-Header", "My-Value".to_owned())
   }
}