Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 1005 Bytes

File metadata and controls

56 lines (37 loc) · 1005 Bytes

method

Restrict the HTTP method for the parent route.

Kind Attribute
Since 0.1.0
Default GET

Syntax

method <verb>

Arguments

Name Type Required
verb string yes

Description

Specifies which HTTP verb the parent endpoint accepts. When omitted, defaults to GET.

Used in

Examples

POST page

page /contact method POST
  html
    <p>Form submitted.</p>

See also

Provenance

Implementation touched after spec. Source code changed on 2026-05-20, but this entity's spec was last edited on 2026-05-08. The description may be out of date.

Spec last touched 5da8498 (2026-05-08)
Source last touched af278bb (2026-05-20)
Source files internal/parser/parser.go