pub fn infer_annotations_from_method(method: &str) -> ModuleAnnotationsExpand description
Infer behavioral annotations from an HTTP method.
Canonical RFC 9110 mapping (aligned with Python and TypeScript SDKs and the spec at apcore-toolkit/docs/features/scanning.md):
- GET -> readonly=true, cacheable=true
- HEAD -> readonly=true (no cacheable)
- OPTIONS -> readonly=true (no cacheable)
- DELETE -> destructive=true
- PUT -> idempotent=true
- POST -> default (all false; creates resources, not idempotent by spec)
- PATCH -> default (partial update, not standardly idempotent)
- unknown method -> default (all false)