pub fn response_type(mut self, content_type: &str, response_type: ResponseType) -> Self {
        self.config
            .response_types
            .insert(content_type.to_lowercase(), response_type);
        self
    }
/// Sets the `ResponseType` for responses with the given Content-Type header.
///
/// `content_type` values are treated case-insensitively.
///
/// # Example
///
/// ```rust
/// use rocket_lamb::{RocketExt, ResponseType};
///
/// let builder = rocket::ignite()
///     .lambda()
///     .response_type("TEXT/PLAIN", ResponseType::Text);
/// assert_eq!(builder.get_response_type("text/plain"), ResponseType::Text);
/// assert_eq!(builder.get_response_type("application/json"), ResponseType::Auto);
/// ```
Sets the `ResponseType` for responses with the given Content-Type header.
`content_type` values are treated case-insensitively.
Sets the ` ResponseType ` for responses with the given Content - Type header . ` content_type ` values are treated case - insensitively .
pub fn response_type(mut self, content_type: &str, response_type: ResponseType) -> Self {
        self.config
            .response_types
            .insert(content_type.to_lowercase(), response_type);
        self
    }
pub fn response_type ( mut self , content_type : & str , response_type : ResponseType ) -> Self { self . config . response_types . insert ( content_type . to_lowercase ( ) , response_type ) ; self }
Sets the `ResponseType` for responses with the given Content-Type header.
Sets the ` ResponseType ` for responses with the given Content - Type header .
mut self
content_type
&str
response_type
ResponseType
mut self
content_type
&str
response_type
ResponseType
example
```rust
use rocket_lamb::{RocketExt, ResponseType}.

let builder = rocket::ignite()
.lambda()
.response_type("TEXT/PLAIN", ResponseType::Text);
assert_eq!(builder.get_response_type("text/plain"), ResponseType::Text);
assert_eq!(builder.get_response_type("application/json"), ResponseType::Auto);
```
` ` ` rust use rocket_lamb :: { RocketExt ResponseType } . let builder = rocket :: ignite () . lambda () . response_type ( " TEXT / PLAIN " ResponseType :: Text ) ; assert_eq! ( builder . get_response_type ( " text / plain " ) ResponseType :: Text ) ; assert_eq! ( builder . get_response_type ( " application / json " ) ResponseType :: Auto ) ; ` ` `