Skip to main content

parse_envelope

Function parse_envelope 

Source
pub fn parse_envelope(value: &Value) -> Option<HttpEnvelope>
Expand description

Return Some(envelope) if the JSON value is a tagged HTTP response.

Used by the harn-serve HTTP codec to detect that a .harn handler opted into structured HTTP semantics rather than the default 200 {result} shape.