Skip to main content

CompressionTypes

Assembly: ServiceStack.Text.dll
View Source
Declaration
public static class CompressionTypes

Fields

AllCompressionTypes

View Source
Declaration
public static readonly string[] AllCompressionTypes

Default

View Source
Declaration
public const string Default = "deflate"

Brotli

View Source
Declaration
public const string Brotli = "br"

Deflate

View Source
Declaration
public const string Deflate = "deflate"

GZip

View Source
Declaration
public const string GZip = "gzip"

Methods

IsValid(String)

View Source
Declaration
public static bool IsValid(string compressionType)
Returns

System.Boolean

Parameters
TypeName
System.StringcompressionType

AssertIsValid(String)

View Source
Declaration
public static void AssertIsValid(string compressionType)
Parameters
TypeName
System.StringcompressionType

GetExtension(String)

View Source
Declaration
public static string GetExtension(string compressionType)
Returns

System.String

Parameters
TypeName
System.StringcompressionType