C# Class Microsoft.Http.HttpContent.HttpTextEncodingHelpers

Show file Open project: o2platform/O2.Platform.Projects

Public Methods

Method Description
EnsureContentTypeMatches ( Encoding encoding, string contentType ) : void
ExtractEncoding ( string contentType, Encoding fallback ) : Encoding
ExtractEncodingOrDefaultHttp ( string contentType ) : Encoding

Method Details

EnsureContentTypeMatches() public static method

public static EnsureContentTypeMatches ( Encoding encoding, string contentType ) : void
encoding System.Text.Encoding
contentType string
return void

ExtractEncoding() public static method

public static ExtractEncoding ( string contentType, Encoding fallback ) : Encoding
contentType string
fallback System.Text.Encoding
return System.Text.Encoding

ExtractEncodingOrDefaultHttp() public static method

public static ExtractEncodingOrDefaultHttp ( string contentType ) : Encoding
contentType string
return System.Text.Encoding