Skip to main content

Enclosure

An RSS enclosure

Attributes

AttributeTypeDescription
lengthstringThe size of the linked enclosure file in bytes, represented as a string.
mime_typestringThe standard MIME type of the enclosure content used to determine how the file should be handled or played.
urlstringThe URI-encoded location of the enclosure file, converted from the provided Internationalized Resource Identifier.

Constructor

Signature

def Enclosure(
url: string,
length: string,
mime_type: string
)

Parameters

NameTypeDescription
urlstringThe URL of the enclosure, which will be converted to a URI.
lengthstringThe length of the enclosure.
mime_typestringThe MIME type of the enclosure.

Signature

def Enclosure(
url: string,
length: string,
mime_type: string
)

Parameters

NameTypeDescription
urlstringThe IRI of the enclosure which is converted to a URI for storage
lengthstringThe size of the enclosure in bytes
mime_typestringThe standard MIME type of the enclosure content