Method-based routing
Emissary 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:
---
apiVersion: getambassador.io/v2
kind: Mapping
metadata:
name: get
spec:
prefix: /backend/get_only/
method: GET
service: quote
Using method_regex
When method_regex
is set to true
, the value of the method
annotation will be interpreted as a regular expression.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.