pub fn add_response_header(&mut self, key: String, value: String) {
        self.response_headers.insert(
            HeaderName::from_str(key.as_str()).unwrap(),
            HeaderValue::from_str(value.as_str()).unwrap(),
        );
    }
/// Adds a custom header to the response.
///
/// # Examples
///
/// ```rust,ignore
/// ctx.add_response_header("X-COOLNESS-METER-SAYS", "OVER-9000")
/// ```
Adds a custom header to the response.
Adds a custom header to the response .
pub fn add_response_header(&mut self, key: String, value: String) {
        self.response_headers.insert(
            HeaderName::from_str(key.as_str()).unwrap(),
            HeaderValue::from_str(value.as_str()).unwrap(),
        );
    }
pub fn add_response_header ( & mut self , key : String , value : String ) { self . response_headers . insert ( HeaderName :: from_str ( key . as_str ( ) ) . unwrap ( ) , HeaderValue :: from_str ( value . as_str ( ) ) . unwrap ( ) , ) ; }
Adds a custom header to the response.
Adds a custom header to the response .
&mut self
key
String
value
String
examples
```rust,ignore
ctx.add_response_header("X-COOLNESS-METER-SAYS", "OVER-9000")
```
` ` ` rust ignore ctx . add_response_header ( " X - COOLNESS - METER - SAYS " " OVER - 9000 " ) ` ` `