HttpContentType

Overview

HttpContentType is an Enum that defines common Content-Type header values used in HTTP request or response.

This is used in the PostAsync() method of HttpService and specifies the data format of requests or responses.

Items

Name
Value
Description

ApplicationJson

0

"application/json" format; used for JSON data.

ApplicationXml

1

"application/xml" format; used for XML data.

ApplicationUrlEncoded

2

"application/x-www-form-urlencoded" format; used for web form submissions.

TextPlain

3

"text/plain" format; used for plain text.

TextXml

4

"text/xml" format; used for text-based XML data.

See also

HttpServicechevron-right

Last updated