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
| Type | Name | 
|---|---|
| System.String | contentType | 
NormalizeContentType(String)
View Source
Declaration
public static string NormalizeContentType(string contentType)
Returns
System.String
Parameters
| Type | Name | 
|---|---|
| System.String | contentType | 
GetRealContentType(String)
View Source
Declaration
public static string GetRealContentType(string contentType)
Returns
System.String
Parameters
| Type | Name | 
|---|---|
| System.String | contentType | 
MatchesContentType(String, String)
View Source
Declaration
public static bool MatchesContentType(this string contentType, string matchesContentType)
Returns
System.Boolean
Parameters
| Type | Name | 
|---|---|
| System.String | contentType | 
| System.String | matchesContentType | 
IsBinary(String)
View Source
Declaration
public static bool IsBinary(this string contentType)
Returns
System.Boolean
Parameters
| Type | Name | 
|---|---|
| System.String | contentType | 
ToFeature(String)
View Source
Declaration
public static Feature ToFeature(this string contentType)
Returns
Parameters
| Type | Name | 
|---|---|
| System.String | contentType | 
GetContentFormat(Format)
View Source
Declaration
public static string GetContentFormat(Format format)
Returns
System.String
Parameters
| Type | Name | 
|---|---|
| ServiceStack.Format | format | 
GetContentFormat(String)
View Source
Declaration
public static string GetContentFormat(string contentType)
Returns
System.String
Parameters
| Type | Name | 
|---|---|
| System.String | contentType | 
ToContentFormat(String)
View Source
Declaration
public static string ToContentFormat(this string contentType)
Returns
System.String
Parameters
| Type | Name | 
|---|---|
| System.String | contentType | 
ToContentType(Format)
View Source
Declaration
public static string ToContentType(this Format formats)
Returns
System.String
Parameters
| Type | Name | 
|---|---|
| ServiceStack.Format | formats | 
GetRequestAttribute(String)
View Source
Declaration
public static RequestAttributes GetRequestAttribute(string httpMethod)
Returns
ServiceStack.RequestAttributes
Parameters
| Type | Name | 
|---|---|
| System.String | httpMethod |