RestUtilities.

GetBodyContentType(BodyType) Method

Summary

Returns MIME Type string for given BodyType (used for requests with a body of type "string").
Assembly
Cake.Rest.dll
Namespace
Cake.Rest
Containing Type
RestUtilities

Syntax

public static string GetBodyContentType(BodyType bodyType)

Parameters

Name Type Description
bodyType BodyType Content Type

Return Value

Type Description
string corresponding MIME type