StringContent constructor

init

Initializes a new instance of the StringContent class.

def __init__(self, content):
    ...
ParameterTypeDescription
contentstrThe content.

init

Initializes a new instance of the StringContent class.

def __init__(self, content, encoding):
    ...
ParameterTypeDescription
contentstrThe content.
encodingSystem.Text.EncodingThe encoding.

init

Initializes a new instance of the StringContent class.

def __init__(self, content, encoding, media_type):
    ...
ParameterTypeDescription
contentstrThe content.
encodingSystem.Text.EncodingThe encoding.
media_typestrType of the media.

See Also