AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.14.0-alpha-803" />

 MimeTypeNames

public static class MimeTypeNames
Contains a list of common mime-types.
public static readonly string ApplicationJson

Gets the mime-type for JSON text: application/json.

public static readonly string ApplicationXHtml

Gets the mime-type for XHTML / XML text: application/xhtml+xml.

public static readonly string ApplicationXml

Gets the mime-type for XML applications: application/xml.

public static readonly string Binary

Gets the mime-type for raw binary data: application/octet-stream.

public static readonly string Css

Gets the mime-type for a cascading style sheet: text/css.

public static readonly string DefaultJavaScript

Gets the default mime-type for JavaScript scripts: text/javascript.

public static readonly string Html

Gets the mime-type for HTML text: text/html.

public static readonly string MultipartForm

Gets the mime-type for multipart form data: multipart/form-data.

public static readonly string Plain

Gets the mime-type for plain text: text/plain.

public static readonly string Png

Gets the mime-type for a PNG image: image/png.

public static readonly string Svg

Gets the mime-type for SVG text: image/svg+xml.

public static readonly string UrlencodedForm

Gets the mime-type for a form: application/x-www-form-urlencoded.

public static readonly string Xml

Gets the mime-type for XML text: text/xml.

public static string FromExtension(string extension)

Gets the mime type from a file extension ".ext".

public static string GetExtension(string mimeType)

Gets some extension ".ext" from a MIME type.

public static bool IsJavaScript(string type)

Checks if the given mime-type is one of the JavaScript variants.

public static bool Represents(this MimeType type, string content)

Checks if the given mime-type is equivalent to the provided string representation.