Heartbeat

class siotls.contents.heartbeat.Heartbeat

The Heartbeat protocol message as defined in RFC 6520 Section 4.

Random padding is automatically added at serialization, with respect for RFC 6066 Section 4 (Maximum Fragment Length).

__init__(
heartbeat_type,
payload,
*,
max_fragment_length=MaxFragmentLengthOctets.MAX_16384,
)
can_fragment: bool = False

Can this content be fragmented over multiple TLS records?

content_type: ContentType = 24

The unique numeric identifier of the content.

heartbeat_type: HeartbeatMessageType

Either heartbeat_request or heartbeat_response.

payload: bytes

The opaque payload.