Skip to main content

WIT_HTTP_SHAPE_PREFIXES

Constant WIT_HTTP_SHAPE_PREFIXES 

Source
pub const WIT_HTTP_SHAPE_PREFIXES: &[&str];
Expand description

Canonical lowercase byte-prefix set the substrate’s WIT-shape dispatch routes wasi:http/* / http:* values through as the HTTP-shaped arm. The single source of truth every consumer that classifies a :wit value as HTTP-shaped consults — WitContract::is_http on the typed contract, the AplicacaoSpec::validate positive-sweep test’s payload-dispatch helper, and every future renderer that routes an L7 emission off a bare &str (the M4 per-edge WIT registry resolver, the future mesh.pleme.io/v1alpha1/Aplicacao CR materializer). Spelled exactly as the is_wit_world_ref predicate documents the canonical lowercase prefixes (“wasi:http/, nats:, wasi:keyvalue/, kafka:, kv:, http:”) so drift between the substrate’s accept-set and this crate’s dispatch-set is a build-time compile error (unused-import), not a per-renderer silent L7-→-L4 demotion at apply time.