Facebook.FacebookApi.ExtractContentType C# (CSharp) Method

ExtractContentType() static private method

static private ExtractContentType ( HttpWebResponse response ) : string
response HttpWebResponse
return string
        static string ExtractContentType(HttpWebResponse response)
        {
            string contentType = response.ContentType;
            if (String.IsNullOrEmpty(contentType))
                throw MissingContentType();
            return contentType.Split(';')[0];
        }