DocsEdge Stack
Method-based routing
1 min • readUsing
Using
Method-based routing
Ambassador Edge Stack supports routing based on the HTTP method and regular expression.
Using method
The method
annotation specifies the specific HTTP method for a mapping. The value of the method
annotation must be in all upper case.
For example:
yaml
---apiVersion: getambassador.io/v3alpha1kind: Mappingmetadata:name: getspec:hostname: "*"prefix: /backend/get_only/method: GETservice: quote
Using method_regex
When method_regex
is set to true
, the value of the method
annotation will be interpreted as a regular expression.
ON THIS PAGE