Enclosure
An RSS enclosure
Attributes
| Attribute | Type | Description |
|---|---|---|
| length | string | The size of the linked enclosure file in bytes, represented as a string. |
| mime_type | string | The standard MIME type of the enclosure content used to determine how the file should be handled or played. |
| url | string | The 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
| Name | Type | Description |
|---|---|---|
| url | string | The URL of the enclosure, which will be converted to a URI. |
| length | string | The length of the enclosure. |
| mime_type | string | The MIME type of the enclosure. |
Signature
def Enclosure(
url: string,
length: string,
mime_type: string
)
Parameters
| Name | Type | Description |
|---|---|---|
| url | string | The IRI of the enclosure which is converted to a URI for storage |
| length | string | The size of the enclosure in bytes |
| mime_type | string | The standard MIME type of the enclosure content |