pub fn submit_payload(
payload: &TelemetryPayload,
endpoint: &str,
) -> Result<SubmitOutcome>Expand description
Submit a telemetry payload to the given endpoint synchronously.
This function:
- Validates the URL is HTTPS (rejects HTTP before network access)
- Serializes and validates the payload
- Sends the payload via HTTPS POST
- Returns
SubmitOutcome::Successon HTTP 200
ยงErrors
Returns SubmitOutcome::HttpRejected for HTTP URLs.
Returns SubmitOutcome::Failed for network or server errors.