Expand description
Content type enum and format resolution. Content type enum and format resolution.
Defines the unified content type for all interfaces. Lives in yeti-types (L0) so Context can reference it directly. Serialization implementations that need heavy deps (ciborium, rmp-serde, serde_yaml) live in yeti-sdk (L2).
Resolution priority:
- Transport headers (Upgrade, Accept: text/event-stream, Content-Type: application/grpc)
- URL extension (.json, .yaml, .sse, .proto, etc.)
- ?format= query parameter
- ?stream=sse query parameter
- Accept header (standard content negotiation)
- Default: JSON
Enums§
- Content
Type - Supported content types, transports, and discovery formats.
Functions§
- resolve_
format - Resolve content type from all sources. Zero allocations.
- strip_
extension - Strip a known file extension from a path segment.
- strip_
extension_ from_ path - Strip a known file extension from the last segment of a URL path.