Skip to main content

parse_for_query

Function parse_for_query 

Source
pub fn parse_for_query(
    query: &AnalyzedQuery,
) -> Result<Option<(HttpAnnotations, u16)>, AnnotationParseError>
Expand description

Convenience: parse the HTTP annotations on an AnalyzedQuery AND validate the command/method combination in one call. Returns Ok(None) when the query has no @http directive.