tao12345666333 commented on issue #781:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/781#issuecomment-988531185


   You can using ApisixRoute like this one.
   ```
   apiVersion: apisix.apache.org/v2beta3
   kind: ApisixRoute
   metadata:
    name: httpbin-route
   spec:
    http:
    - name: rule1
      match:
        hosts:
        - httpbin.org
        paths:
          - /ip
      backends:
      - serviceName: %s
        servicePort: %d
        weight: 10
      plugins:
      - name: echo
        enable: true
        config:
          before_body: "This is the preface"
          after_body: "This is the epilogue"
          headers:
            X-Foo: v1
            X-Foo2: v2
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to