Skip to main content

ContentFormat

Assembly: ServiceStack.Client.dll
View Source
Declaration
public static class ContentFormat

Fields

Utf8Suffix

View Source
Declaration
public const string Utf8Suffix = "; charset=utf-8"

ContentTypeAliases

View Source
Declaration
public static readonly Dictionary<string, string> ContentTypeAliases

Methods

GetEndpointAttributes(String)

View Source
Declaration
public static RequestAttributes GetEndpointAttributes(string contentType)
Returns

ServiceStack.RequestAttributes

Parameters
TypeName
System.StringcontentType

NormalizeContentType(String)

View Source
Declaration
public static string NormalizeContentType(string contentType)
Returns

System.String

Parameters
TypeName
System.StringcontentType

GetRealContentType(String)

View Source
Declaration
public static string GetRealContentType(string contentType)
Returns

System.String

Parameters
TypeName
System.StringcontentType

MatchesContentType(String, String)

View Source
Declaration
public static bool MatchesContentType(this string contentType, string matchesContentType)
Returns

System.Boolean

Parameters
TypeName
System.StringcontentType
System.StringmatchesContentType

IsBinary(String)

View Source
Declaration
public static bool IsBinary(this string contentType)
Returns

System.Boolean

Parameters
TypeName
System.StringcontentType

ToFeature(String)

View Source
Declaration
public static Feature ToFeature(this string contentType)
Returns

ServiceStack.Feature

Parameters
TypeName
System.StringcontentType

GetContentFormat(Format)

View Source
Declaration
public static string GetContentFormat(Format format)
Returns

System.String

Parameters
TypeName
ServiceStack.Formatformat

GetContentFormat(String)

View Source
Declaration
public static string GetContentFormat(string contentType)
Returns

System.String

Parameters
TypeName
System.StringcontentType

ToContentFormat(String)

View Source
Declaration
public static string ToContentFormat(this string contentType)
Returns

System.String

Parameters
TypeName
System.StringcontentType

ToContentType(Format)

View Source
Declaration
public static string ToContentType(this Format formats)
Returns

System.String

Parameters
TypeName
ServiceStack.Formatformats

GetRequestAttribute(String)

View Source
Declaration
public static RequestAttributes GetRequestAttribute(string httpMethod)
Returns

ServiceStack.RequestAttributes

Parameters
TypeName
System.StringhttpMethod