类 VirtualServiceOuterClass.HTTPRedirect.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<VirtualServiceOuterClass.HTTPRedirect.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.HTTPRedirect.Builder>
istio.networking.v1alpha3.VirtualServiceOuterClass.HTTPRedirect.Builder
所有已实现的接口:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, VirtualServiceOuterClass.HTTPRedirectOrBuilder, Cloneable
封闭类:
VirtualServiceOuterClass.HTTPRedirect

public static final class VirtualServiceOuterClass.HTTPRedirect.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.HTTPRedirect.Builder> implements VirtualServiceOuterClass.HTTPRedirectOrBuilder
 HTTPRedirect can be used to send a 301 redirect response to the caller,
 where the Authority/Host and the URI in the response can be swapped with
 the specified values. For example, the following rule redirects
 requests for /v1/getProductRatings API on the ratings service to
 /v1/bookRatings provided by the bookratings service.

 {{<tabset category-name="example">}}
 {{<tab name="v1alpha3" category-value="v1alpha3">}}
 ```yaml
 apiVersion: networking.istio.io/v1alpha3
 kind: VirtualService
 metadata:
   name: ratings-route
 spec:
   hosts:
   - ratings.prod.svc.cluster.local
   http:
   - match:
     - uri:
         exact: /v1/getProductRatings
     redirect:
       uri: /v1/bookRatings
       authority: newratings.default.svc.cluster.local
   ...
 ```
 {{</tab>}}

 {{<tab name="v1beta1" category-value="v1beta1">}}
 ```yaml
 apiVersion: networking.istio.io/v1beta1
 kind: VirtualService
 metadata:
   name: ratings-route
 spec:
   hosts:
   - ratings.prod.svc.cluster.local
   http:
   - match:
     - uri:
         exact: /v1/getProductRatings
     redirect:
       uri: /v1/bookRatings
       authority: newratings.default.svc.cluster.local
   ...
 ```
 {{</tab>}}
 {{</tabset>}}

 
Protobuf type istio.networking.v1alpha3.HTTPRedirect