Skip to main content

parse_http_annotations

Function parse_http_annotations 

Source
pub fn parse_http_annotations(
    custom: &[CustomAnnotation],
) -> Result<Option<HttpAnnotations>, AnnotationParseError>
Expand description

Parse spikard’s HTTP vocabulary out of the custom-annotation slice that scythe captured. Returns Ok(None) when no @http directive is present — queries without HTTP semantics co-exist in the same source tree.