Skip to main content

Module discovery

Module discovery 

Source
Expand description

.well-known/tea documents and /discovery responses.

Parsing enforces the pinned schema constraints that decide failover: schemaVersion 1, non-empty endpoint lists, absolute base URLs, and SemVer versions. Priority omitted on the wire becomes 1.

Structs§

DiscoveryInfo
One resolved product release from /discovery.
DiscoveryServer
One servers[] entry.
WellKnownDocument
A validated .well-known/tea document.
WellKnownEndpoint
One well-known endpoint.

Functions§

is_json_content_type
Whether a media type is application/json, ignoring parameters and case.
tea_error_code
Decide whether a 404 body is a TEA error response.
with_query
Append one query parameter, encoding it a single time.