is_json

Function is_json 

Source
pub fn is_json(content_type: Option<&HeaderValue>) -> bool
Expand description

Returns true if the content_type header indicates a valid JSON message.