AspUnitRunner.Infrastructure.ResponseDecoder.GetCharset C# (CSharp) 메소드

GetCharset() 정적인 개인적인 메소드

static private GetCharset ( WebHeaderCollection responseHeaders ) : string
responseHeaders System.Net.WebHeaderCollection
리턴 string
        internal static string GetCharset(WebHeaderCollection responseHeaders)
        {
            var contentType = responseHeaders[HttpResponseHeader.ContentType];
            if (string.IsNullOrEmpty(contentType))
                return null;

            try {
                return new ContentType(contentType).CharSet;
            } catch (FormatException) {
                return null;
            }
        }