Skip to main content

infer_annotations_from_method

Function infer_annotations_from_method 

Source
pub fn infer_annotations_from_method(method: &str) -> ModuleAnnotations
Expand description

Infer behavioral annotations from an HTTP method.

Mapping:

  • GET -> readonly=true, cacheable=true
  • DELETE -> destructive=true
  • PUT -> idempotent=true
  • Others -> default (all false)