Expand description
Boundary validation and safe endpoint formatting.
Constants§
- MAX_
PAYLOAD_ JSON_ BYTES - Maximum serialized JSON payload size in bytes.
- MAX_
TOPIC_ NAME_ BYTES - Maximum accepted topic name length in bytes.
Functions§
- map_
broker_ connect_ err - Broker connect failure labeled with a redacted endpoint and redacted source text.
- redact_
credentials_ in_ text - Redact
scheme://userinfo@hostsubstrings embedded in free-form error text. - redact_
endpoint - Remove URL userinfo before placing an endpoint in an error or log message.
- validate_
payload_ size - Reject payloads whose serialized JSON representation exceeds the transport limit.
- validate_
topic_ name - Validate a Photon topic name before it reaches a storage adapter.