Baoyuantop commented on issue #12195:
URL: https://github.com/apache/apisix/issues/12195#issuecomment-2862341677

   ```
   apiVersion: apisix.apache.org/v2
   kind: ApisixRoute
   metadata:
     name: httpserver-route
   spec:
     http:
     - name: rule1
       match:
         hosts:
         - local.httpbin.org
         paths:
         - /*
       backends:
          - serviceName: httpbin
            servicePort: 80
       plugins:
         - name: response-rewrite
           enable: true
           config:
             headers:
               set:
                 Alt-Svc: 'h2="example.com:443"; ma=86400'
   ```
   
   ```
   curl -i 127.0.0.1:9080/get -H 'Host: local.httpbin.org'
   
   HTTP/1.1 200 OK
   Content-Type: application/json
   Content-Length: 239
   Connection: keep-alive
   Date: Thu, 08 May 2025 09:14:09 GMT
   Access-Control-Allow-Origin: *
   Access-Control-Allow-Credentials: true
   Server: APISIX/3.11.0
   Alt-Svc: h2="example.com:443"; ma=86400
   
   {
     "args": {}, 
     "headers": {
       "Accept": "*/*", 
       "Host": "local.httpbin.org", 
       "User-Agent": "curl/8.7.1", 
       "X-Forwarded-Host": "local.httpbin.org"
     }, 
     "origin": "127.0.0.1", 
     "url": "http://local.httpbin.org/get";
   }
   ```


-- 
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