port1900.response
Response object for port1900.
Response
dataclass
Represents a response received from a Nex server.
encoding
class-attribute
instance-attribute
encoding: str = 'utf-8'
Encoding used to decode text (default: 'utf-8').
mime_type
cached
property
mime_type: str
Inferred MIME type based on the requested URI path extension.
Defaults to 'text/plain' if no MIME type can be inferred or if there is no extension.
text
cached
property
text: str
Response content decoded as text.
Performs a decode using encoding. If a UnicodeDecodeError is raised,
falls back to iso8859-1, and if that raises an error falls back to
errors="replace".