StringContent class

StringContent class

Represents content based on a string.

Inheritance: StringContentByteArrayContentContent

The StringContent type exposes the following members:

Constructors

ConstructorDescription
initInitializes a new instance of the StringContent class.
initInitializes a new instance of the StringContent class.
initInitializes a new instance of the StringContent class.

Properties

PropertyDescription
headersGets the HTTP content headers.

Methods

MethodDescription
read_as_streamSerialize the HTTP content and return a stream that represents the content.
read_as_byte_arraySerialize the HTTP content and return a byte array that represents the content.
read_as_stringSerialize the HTTP content and return a string that represents the content.

See Also