Skip to main content

Module submit

Module submit 

Source
Expand description

HTTPS telemetry submission client.

Submits anonymous telemetry payloads exclusively over HTTPS. HTTP URLs are rejected before any network access occurs.

§Design

  • HTTPS-only: HTTP URLs are rejected at validation time, before any network connection is made.
  • Fire-and-forget: Submission runs in a background task via submit_fire_and_forget and does not block the main pipeline.
  • Thank-you confirmation: On successful submission (HTTP 200), a thank-you message is displayed to the user.

§Validation Contract

  • VAL-TELE-008: Submission exclusively over HTTPS, HTTP rejected.
  • VAL-TELE-009: Thank-you confirmation displayed after successful submission.

Enums§

SubmitOutcome
Possible outcomes of a telemetry submission attempt.

Constants§

DEFAULT_ENDPOINT
Default telemetry submission endpoint.
THANK_YOU_MESSAGE
Thank-you message displayed after successful submission.

Functions§

submit_blocking
Submit a telemetry payload and return the outcome directly.
submit_fire_and_forget
Fire-and-forget telemetry submission.
submit_payload
Submit a telemetry payload to the given endpoint synchronously.
validate_https_url
Validate that a URL uses the HTTPS scheme.