ResourceData
- class plutoprint.ResourceData(content: str | bytes, mime_type: str = ..., text_encoding: str = ...)[source]
This class represents a piece of fetched data (resource)
- __init__(content: str | bytes, mime_type: str = ..., text_encoding: str = ...) None[source]
Initializes a new instance of ResourceData.
- Parameters:
content – The content of the resource.
mime_type – The MIME type of the resource.
text_encoding – The text encoding of the resource.
- get_content() memoryview[source]
Returns the content of the resource.
- Returns:
The content of the resource.