Expand description
TEA API version selection.
Advertised versions are SemVer 2.0.0. Build metadata does not affect precedence or whether a client supports a version. The selected path uses the advertised spelling exactly, including build metadata.
Structs§
- ApiVersion
- One advertised API version, preserving the wire spelling.
- Ordered
Priority - Finite priority in the closed range 0..=1, stored as bits so it can be ordered.
- Selected
Endpoint - Chosen endpoint after version negotiation.
- Supported
Api - A version the client implements.
- Versioned
Endpoint - One candidate API base before selection.
Functions§
- select_
endpoints - Select candidate endpoints in the order a client should try them.
- versioned_
api_ prefix - Build
{root}/v{version}/without encoding+in build metadata.