C# Class Nancy.Serialization.ServiceStack.Helpers

Afficher le fichier Open project: NancyFx/Nancy.Serialization.ServiceStack

Méthodes publiques

Méthode Description
IsJsonType ( string contentType ) : bool

Attempts to detect if the content type is JSON. Supports: application/json text/json application/vnd[something]+json Matches are case insentitive to try and be as "accepting" as possible.

Method Details

IsJsonType() public static méthode

Attempts to detect if the content type is JSON. Supports: application/json text/json application/vnd[something]+json Matches are case insentitive to try and be as "accepting" as possible.
public static IsJsonType ( string contentType ) : bool
contentType string Request content type
Résultat bool