part_content_type Property

Content type for each part.

Syntax

def get_part_content_type(part_idx: int) -> str: ...
def set_part_content_type(part_idx: int, value: str) -> None: ...

Default Value

""

Remarks

Content type for each part. The value of this property is used in the Content-Type header. Typical values include "image/gif", "text/plain" etc. The class fills it out each time the part_decoded_file is changed. Changing This property recalculates the part_headers as well.

The part_idx parameter specifies the index of the item in the array. The size of the array is controlled by the part_count property.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Python Edition - Version 20.0 [Build 8307]