Skip to main content

is_activity_content_type

Function is_activity_content_type 

Source
pub fn is_activity_content_type(content_type: &str) -> bool
Expand description

Whether content_type is ActivityStreams: application/activity+json, or application/ld+json with the ActivityStreams profile. Plain JSON is not enough; a server that lets its users upload files would otherwise serve documents in its own name that none of its actors wrote.